Web API Reference | MapGuide Open Source

- Overview
- Modules
- Classes

GetLength
GetMimeType
IsRewindable
MgByteReader
MgByteReader
MgByteReader
MgByteSink
MgByteSource
Read
Rewind
ToFile
ToString
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

Comments or suggestions? Send us feedback.