|
YAACC - UPNP Client and Server
|
Reads the body of a Flatbuf packet of a v4 receiver (a serialized Packet, see V4Schema).
More...

Static Public Member Functions | |
| static V4In | read (byte[] body) throws FCastProtocolException |
Reads the body of a Flatbuf packet of a v4 receiver (a serialized Packet, see V4Schema).
Hand-written on top of the FlatBuffers runtime for the messages YAACC uses (decision D23); a message it does not use is V4In.Kind#OTHER. Hostile input: the buffer is limited by the caller (the packet size), every access is bounds checked by the runtime, vectors are limited here ({@value MAX_TRACKS} tracks) and nothing is followed recursively; whatever goes wrong inside the buffer is one FCastProtocolException of kind BAD_BODY, the connection goes on.