`TypeByBuffer(buffer *bytes.Buffer, len int)` maybe. I'd at least suggest to rename the method to keep it consistent with magic_buffer.