WriteBytes() публичный Метод

Writes BSON binary data to the writer.
public WriteBytes ( byte bytes ) : void
bytes byte The bytes.
Результат void
Пример #1
0
 public void Test1ChunkPlus1()
 {
     var stream = new MemoryStream();
     using (var bsonWriter = new BsonBinaryWriter(stream))
     {
         bsonWriter.WriteStartDocument();
         bsonWriter.WriteBytes("Data", new byte[16 * 1024 - 15]);
         bsonWriter.WriteEndDocument();
         bsonWriter.Close();
     }
 }