YAACC - UPNP Client and Server
Loading...
Searching...
No Matches
de.yaacc.fcast.protocol.v4.V4Reader Class Reference

Reads the body of a Flatbuf packet of a v4 receiver (a serialized Packet, see V4Schema). More...

Collaboration diagram for de.yaacc.fcast.protocol.v4.V4Reader:
Collaboration graph

Static Public Member Functions

static V4In read (byte[] body) throws FCastProtocolException
 

Static Public Attributes

static final int MAX_TRACKS = 256
 The most tracks read from one TracksAvailable.
 
static final int MAX_FORMATS = 128
 The most format names read from one list of the capabilities.
 

Detailed Description

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.


The documentation for this class was generated from the following file: