public SingleByteStringStorage(SingleByteStringStorageOptions options)
 {
     if (!options.Encoding.IsSingleByte)
     {
         throw new ArgumentException($"{nameof(SingleByteStringStorage)} only works with single byte encodings");
     }
     Options = options;
     CreateNewCurrentSegment();
 }
Example #2
0
 internal SingleByteStringStorageSegment(SingleByteStringStorageOptions options)
 {
     _data    = new byte[options.GrowthIncrement];
     _options = options;
 }