[This is preliminary documentation and subject to change.]
Check whether we have all the bytes that the PDU contains. Throws if the PDU being received is bigger than the receive buffer. This should not happen, as we told the peer at connect time what size our buffer was.
Check whether we have all the bytes that the PDU contains. Throws if the PDU being received is bigger than the receive buffer. This should not happen, as we told the peer at connect time what size our buffer was.
| Exception Type | Condition |
|---|---|
| ArgumentNullException |
buffer is null. |
| ArgumentOutOfRangeException | length is invalid, must be positive and within the range of MaximumMru, ie in the range of UInt16. |
| ProtocolViolationException |
The length field in the PDU is invalid, for instance has a value less than the minimum (3). – or – The PDU being received is bigger than the local maximum receive size (LocalMru). |
ObexPduFactory Class | Brecham.Obex.Pdus Namespace | ObexPduFactory.ParseForLength Overload List