←Select platform

Read(IntPtr,UInt32) Method

Summary

Reads a specified number of bytes from the LeadBufferStream object and writes the data into the specified buffer.

Syntax

C#
VB
Java
Objective-C
WinRT C#
C++
public uint Read(  
   IntPtr buffer, 
   uint count 
) 
Public Overloads Function Read( _ 
   ByVal buffer As IntPtr, _ 
   ByVal count As UInteger _ 
) As UInteger 
public uint Read(  
   IntPtr buffer, 
   uint count 
) 
-(unsigned int)read:(unsigned char*)buffer count:(unsigned int)count; 
public int read(byte[] buffer, int count) 
 function Leadtools.LeadBufferStream.Read(IntPtr,UInt32)(  
   buffer , 
   count  
) 
public: 
uint Read(  
   IntPtr buffer, 
   uint count 
)  

Parameters

buffer
The buffer to write the data into.

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