public override int WriteTo(byte[] Buffer, int StartIndex = 0) { int cursor = StartIndex; Buffer[cursor] = (byte)CommandType; // Type (1 byte) cursor++; cursor += GuildID.WriteTo(Buffer, cursor); // GuildID (4/8 bytes) return(cursor - StartIndex); }