[This is preliminary documentation and subject to change.]
Get a buffer of the correct size for receiving.
A Byte array of the maximum size of PDU allowed to be received from the peer.
Note This will likely change in a later version to to same pattern as for the send buffer, ieThis method allocates a new byte array of size LocalMru on each call. On the send side we aim to use only a single buffer for efficiency, hence the GetNewSendBuffer and GetSendBuffer methods. On the receive side it is expected that a single buffer be allocated to receive the first PDU and it is used to receive each subsequent PDUs into. As OBEX only allows one command to be outstanding at one time this is acceptable. If also receiving a PDU before the previous response is sent — to handle early ABORT — then a separate buffer will have to be used then however.GetNewReceiveBuffer/GetReceiveBuffer.
ObexPduFactory Class | Brecham.Obex.Pdus Namespace