clientID *[]byte
Flags byte
IsReply byte
- Type []byte
- ID []byte
- ErrorCode []byte
- TotalSize []byte
- DataSize []byte
- ParamCount []byte
+ Type [2]byte
+ ID [4]byte
+ ErrorCode [4]byte
+ TotalSize [4]byte
+ DataSize [4]byte
+ ParamCount [2]byte
Fields []Field
readOffset int
}
fields: fields{
Flags: 0x00,
IsReply: 0x01,
- Type: []byte{0, 0},
- ID: []byte{0x9a, 0xcb, 0x04, 0x42},
- ErrorCode: []byte{0, 0, 0, 0},
+ Type: [2]byte{0, 0},
+ ID: [4]byte{0x9a, 0xcb, 0x04, 0x42},
+ ErrorCode: [4]byte{0, 0, 0, 0},
Fields: []Field{
NewField(FieldData, []byte("TEST")),
},
fields: fields{
Flags: 0x00,
IsReply: 0x01,
- Type: []byte{0, 0},
- ID: []byte{0x9a, 0xcb, 0x04, 0x42},
- ErrorCode: []byte{0, 0, 0, 0},
+ Type: [2]byte{0, 0},
+ ID: [4]byte{0x9a, 0xcb, 0x04, 0x42},
+ ErrorCode: [4]byte{0, 0, 0, 0},
Fields: []Field{
NewField(FieldData, []byte("TEST")),
},
fields: fields{
Flags: 0x00,
IsReply: 0x01,
- Type: []byte{0, 0},
- ID: []byte{0x9a, 0xcb, 0x04, 0x42},
- ErrorCode: []byte{0, 0, 0, 0},
+ Type: [2]byte{0, 0},
+ ID: [4]byte{0x9a, 0xcb, 0x04, 0x42},
+ ErrorCode: [4]byte{0, 0, 0, 0},
Fields: []Field{
NewField(FieldData, []byte("TEST")),
},