public void CopyTo(BufferSegment segment, int length)
 {
     System.Buffer.BlockCopy(this.m_buffer.Array, this.m_offset, segment.Buffer.Array, segment.Offset, length);
 }
 public static BufferSegment CreateSegment(byte[] bytes)
 {
     return(BufferSegment.CreateSegment(bytes, 0, bytes.Length));
 }
Exemple #3
0
 public SegmentStream(BufferSegment segment)
 {
     this.m_segment  = segment;
     this.m_position = this.m_segment.Offset;
 }