←Select platform

Read(IBuffer,Int32,UInt32) Method

Summary

Reads a specified number of bytes from the LeadStream object and writes the data into the specified WinRT IBuffer.

Syntax

C#
VB
WinRT C#
C++
int Read(  
   IBuffer buffer, 
   int bufferIndex, 
   uint count 
) 
Overloads Function Read( _ 
   ByVal buffer As IBuffer, _ 
   ByVal bufferIndex As Integer, _ 
   ByVal count As UInteger _ 
) As Integer 
int Read(  
   IBuffer buffer, 
   int bufferIndex, 
   uint count 
) 
function Leadtools.ILeadStream.Read(IBuffer,Int32,UInt32)(  
   buffer , 
   bufferIndex , 
   count  
) 
int Read(  
   IBuffer^ buffer, 
   int bufferIndex, 
   uint count 
)  

Parameters

buffer
The buffer to write the data into.

bufferIndex
Index into buffer where reading begins.

count
The maximum number of bytes to read.

Return Value

The total number of bytes read into the buffer. The result value can be less than the number of bytes requested if the number of bytes currently available is less than the requested number, or it can be 0 (zero) if the end of the stream has been reached

Remarks

Use the CanRead property to determine whether the current instance supports reading.

Requirements

Target Platforms

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools Assembly