DkmFileTransferStream.ReadNext Method

Definition

Overloads

ReadNext(Byte[], Int32)

Reads the next set of bytes from the remote file. This API will fail if ReadFirst has not already been called on the DkmFileTransferStream.

ReadNext(Void*, Int32, Int32)

Reads the next set of bytes from the remote file. This API will fail if ReadFirst has not already been called on the DkmFileTransferStream.

ReadNext(Byte[], Int32)

Reads the next set of bytes from the remote file. This API will fail if ReadFirst has not already been called on the DkmFileTransferStream.

public:
 void ReadNext(cli::array <System::Byte> ^ ContentBuffer, [Runtime::InteropServices::Out] int % BytesRead);
public void ReadNext (byte[] ContentBuffer, out int BytesRead);
member this.ReadNext : byte[] * int -> unit
Public Sub ReadNext (ContentBuffer As Byte(), ByRef BytesRead As Integer)

Parameters

ContentBuffer
Byte[]

[In,Out] Buffer which receives the next bytes of the file.

BytesRead
Int32

[Out] Indicates the number of bytes read into the content buffer. This value is the smaller of the number of bytes left in the file (TotalFileSize returned from ReadFirst minus bytes already returned), and the size of the input buffer. In pseudo-code: min(TotalFileSize-BytesAlreadyReturned, BufferSize).

Applies to

ReadNext(Void*, Int32, Int32)

Reads the next set of bytes from the remote file. This API will fail if ReadFirst has not already been called on the DkmFileTransferStream.

public:
 void ReadNext(void* ContentBuffer, int BufferSize, [Runtime::InteropServices::Out] int % BytesRead);
public void ReadNext (void* ContentBuffer, int BufferSize, out int BytesRead);
member this.ReadNext : nativeptr<unit> * int * int -> unit

Parameters

ContentBuffer
Void*

[In,Out] Buffer which receives the next bytes of the file.

BufferSize
Int32

[In] Indicates the size of the content buffer.

BytesRead
Int32

[Out] Indicates the number of bytes read into the content buffer. This value is the smaller of the number of bytes left in the file (TotalFileSize returned from ReadFirst minus bytes already returned), and the size of the input buffer. In pseudo-code: min(TotalFileSize-BytesAlreadyReturned, BufferSize).

Applies to