Brecham.Obex — An OBEX library for the .NET Framework

ObexParsedPdu.ExtraLength Property

Get the number of bytes remaining in the buffer when the PDU was read from it.

[Visual Basic]
Public ReadOnly Property ExtraLength As Integer
[C#]
public int ExtraLength {get;}

Remarks

The PDU contains a length field so the parser knows how many of the bytes in the buffer are for the first PDU. If there are any left over the count is set here. If using ReadAPdu or ParseForLength then the buffer should contain one PDU and no extra bytes and thus this property will have value zero.

See Also

ObexParsedPdu Class | Brecham.Obex.Pdus Namespace