fix: magic.buffer method must accept only Buffer argument.