Table of Contents

Method ReadBytes

Namespace
MongoDB.Bson.IO
Assembly
MongoDB.Bson.dll

ReadBytes(BsonStream, byte[], int, int)

Reads bytes from the stream.

public static void ReadBytes(this BsonStream stream, byte[] buffer, int offset, int count)

Parameters

stream BsonStream

The stream.

buffer byte[]

The buffer.

offset int

The offset.

count int

The count.

ReadBytes(BsonStream, int)

Reads bytes from the stream.

public static byte[] ReadBytes(this BsonStream stream, int count)

Parameters

stream BsonStream

The stream.

count int

The count.

Returns

byte[]

The bytes.