This type supports the Fluorine infrastructure and is not intended to be used directly from your code. http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html The following invariant holds for the mark, position, limit, and capacity values: 0 <= mark <= position <= limit <= capacity
Inheritance: Stream
 public void Dispose()
 {
     if (_channel != null)
     {
         _channel.Dispose();
         _channel = null;
     }
     if (_buf != null)
     {
         _buf.Dispose();
         _buf = null;
     }
 }
 /// <exception cref="IOException"/>
 public bool Read(Stream channel, long position, ByteBuffer buffer)
 {
     buffer.Position = 0;
     var originalPos = channel.Position;
     channel.Position = position;
     var data = new byte[buffer.Length];
     var bytesRead = channel.Read(data);
     buffer.Clear();
     buffer.Write(data);
     channel.Position = originalPos;
     if (bytesRead < Size)
         return false;
     buffer.Position = 0;
     _height = (uint) buffer.GetInt();
     buffer.Get(_chainWork);
     buffer.Get(_blockHeader);
     return true;
 }