Method ReadBytes
ReadBytes(Byte[], Int32, Int32)
Reads a specified number of bytes into an array at the specified offset.
Declaration
public abstract void ReadBytes(byte[] b, int offset, int len)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | b | the array to read bytes into |
System.Int32 | offset | the offset in the array to start storing bytes |
System.Int32 | len | the number of bytes to read |
See Also
ReadBytes(Byte[], Int32, Int32, Boolean)
Reads a specified number of bytes into an array at the
specified offset with control over whether the read
should be buffered (callers who have their own buffer
should pass in "false" for useBuffer
). Currently only
BufferedIndexInput respects this parameter.
Declaration
public virtual void ReadBytes(byte[] b, int offset, int len, bool useBuffer)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | b | the array to read bytes into |
System.Int32 | offset | the offset in the array to start storing bytes |
System.Int32 | len | the number of bytes to read |
System.Boolean | useBuffer | set to false if the caller will handle buffering. |