Share via


ProviderI2cTransferResult.BytesTransferred Field

Definition

The actual number of bytes that the operation actually transferred. The following table describes what this value represents for each method.

Method Description
ReadPartial The actual number of bytes that the read operation read into the buffer. If the value of the Status member is ProviderI2CTransferStatus.PartialTransfer, this value may be less than the number of bytes in the buffer that you specified in the buffer parameter.
WritePartial The actual number of bytes that the write operation transferred to the I2 C device. If the value of the Status member is ProviderI2CTransferStatus.PartialTransfer, this value may be less than the number of bytes in the buffer that you specified in the buffer parameter.
WriteReadPartial The actual number of bytes that the operation transferred, which is the sum of the number of bytes that the operation wrote and the number of bytes that the operation read. If the value of the Status member is ProviderI2CTransferStatus.PartialTransfer, this value may be less than the sum of lengths of the buffers that you specified in the writeBuffer and readBuffer parameters.
public: unsigned int BytesTransferred;
uint32_t BytesTransferred;
public uint BytesTransferred;
Public BytesTransferred As UInteger 

Field Value

UInt32

unsigned int

uint32_t

Applies to