AutoCAD Map 3D 2009 Geospatial Platform Reference

AutoCAD Map 3D Geospatial Platform API

INT32 MgByteReader::Read ( BYTE_ARRAY_OUT  buffer,
INT32  length 
)

Reads a buffer.

.NET Syntax
int Read(Byte[] buffer, int length);
Java Syntax
int Read(byte[] buffer, int length);
PHP Syntax
int Read(string buffer, int length);

Parameters:
buffer (byte[]/Byte[]/string) A buffer receiving the data.
length (int) Maximum number of bytes to read
Returns:
Actual number of bytes put in the buffer. 0 means end of bytes