// constructors
 /// <summary>
 /// Initializes a new instance of the <see cref="SingleChunkBuffer"/> class.
 /// </summary>
 /// <param name="chunk">The chunk.</param>
 /// <param name="sliceOffset">The slice offset.</param>
 /// <param name="length">The length.</param>
 /// <param name="isReadOnly">Whether the buffer is read only.</param>
 public SingleChunkBuffer(BsonChunk chunk, int sliceOffset, int length, bool isReadOnly)
     : base(GetChunkBytes(chunk), sliceOffset, length, isReadOnly)
 {
     _chunk = chunk;
     chunk.IncrementReferenceCount();
 }
 // constructors
 /// <summary>
 /// Initializes a new instance of the <see cref="SingleChunkBuffer"/> class.
 /// </summary>
 /// <param name="chunk">The chunk.</param>
 /// <param name="sliceOffset">The slice offset.</param>
 /// <param name="length">The length.</param>
 /// <param name="isReadOnly">Whether the buffer is read only.</param>
 public SingleChunkBuffer(BsonChunk chunk, int sliceOffset, int length, bool isReadOnly)
     : base(GetChunkBytes(chunk), sliceOffset, length, isReadOnly)
 {
     _chunk = chunk;
     chunk.IncrementReferenceCount();
 }