示例#1
0
 public FastestBinaryReader(byte[] buff, byte *_buff)
 {
     m_buff       = buff;
     m_pinned     = false;
     m_head       = _buff;
     m_current    = m_head;
     m_baseStream = new _BaseStream()
     {
         _this = this
     };
 }
示例#2
0
 public FastestBinaryReader(byte[] buff)
 {
     m_buff = buff;
     if (m_buff != null)
     {
         m_gcHandle = GCHandle.Alloc(m_buff, GCHandleType.Pinned);
         m_head     = (byte *)m_gcHandle.AddrOfPinnedObject();
         m_current  = m_head;
         m_pinned   = true;
     }
     m_baseStream = new _BaseStream()
     {
         _this = this
     };
 }