Segments
Segments are classes which encode Objects into byte arrays for creating packets for network transmission.
Important Methods | |
---|---|
encode | Encodes an Object into a byte array |
decode | Decodes a byte array into the Object it represents |
can_decode | Checks if there is enough data available to decode an Object |
concat | Concatenates bytes, byte arrays, and arrays of byte arrays together into a single byte array |