Skip to content

Instantly share code, notes, and snippets.

@EmielM
Created May 21, 2010 13:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save EmielM/408821 to your computer and use it in GitHub Desktop.
Save EmielM/408821 to your computer and use it in GitHub Desktop.
// A
i.header.Write(&[...]byte{ 0xf0, 0x00, 0x00, 0x00, 0x00, 0x00 });
// B
i.header.WriteString("\xf0\x00\x00\x00\x00\x00")
// C
i.header.WriteByte(0xf0);
i.header.WriteByte(0x00);
i.header.WriteByte(0x00);
i.header.WriteByte(0x00);
i.header.WriteByte(0x00);
i.header.WriteByte(0x00);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment