Exemplo n.º 1
0
 internal static void AddSegment(ReadOnlySequenceAccessor cursor, int length, ref MappedSegment?first, ref MappedSegment?last)
 {
     if (first is null || last is null)
     {
         first = last = new MappedSegment(cursor, length)
         {
             RunningIndex = 0L
         }
     }
     ;
Exemplo n.º 2
0
 private MappedSegment(ReadOnlySequenceAccessor cursor, int length)
     : this(cursor, new Segment(0L, length))
 {
 }
Exemplo n.º 3
0
 private MappedSegment(ReadOnlySequenceAccessor cursor, Segment segment)
 {
     manager = new MemoryManager(cursor, segment);
     Memory  = manager.Memory;
 }
Exemplo n.º 4
0
 internal MemoryManager(ReadOnlySequenceAccessor cursor, Segment segment)
 {
     Cursor  = cursor;
     Segment = segment;
 }