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 {@link BufferedIndexInput} respects this parameter.

Namespace: Lucene.Net.Store
Assembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1

Syntax

C#
public virtual void ReadBytes(
	byte[] b,
	int offset,
	int len,
	bool useBuffer
)
Visual Basic
Public Overridable Sub ReadBytes ( _
	b As Byte(), _
	offset As Integer, _
	len As Integer, _
	useBuffer As Boolean _
)
Visual C++
public:
virtual void ReadBytes(
	array<unsigned char>^ b, 
	int offset, 
	int len, 
	bool useBuffer
)

Parameters

b
Type: array<System..::..Byte>[]()[][]
the array to read bytes into
offset
Type: System..::..Int32
the offset in the array to start storing bytes
len
Type: System..::..Int32
the number of bytes to read
useBuffer
Type: System..::..Boolean
set to false if the caller will handle buffering.

See Also