public List <ArraySegment <byte> > BuildReceiveBuffer()
 {
     // Opportunistic reset to start of buffer
     if (decodeOffset == receiveOffset)
     {
         decodeOffset  = 0;
         receiveOffset = 0;
     }
     return(ByteArrayBuilder.BuildSegmentList(readBuffer, receiveOffset));
 }
Ejemplo n.º 2
0
 public List <ArraySegment <byte> > BuildReceiveBuffer()
 {
     AdjustBuffer();
     return(ByteArrayBuilder.BuildSegmentList(readBuffer, receiveOffset));
 }