コード例 #1
0
 public void Setup()
 {
     this.converterData = BufferGenerators.GenerateWithConverters(
         22, new Coordinate {
         X = 10, Y = 20, Z = 30
     },
         "This is a lot of string data. This is a lot of string data. This is a lot of string data.");
     this.streamData = BufferGenerators.GenerateWithStream(
         22, new Coordinate {
         X = 10, Y = 20, Z = 30
     },
         "This is a lot of string data. This is a lot of string data. This is a lot of string data.");
     this.spanData = BufferGenerators.GenerateWithSpan(
         22, new Coordinate {
         X = 10, Y = 20, Z = 30
     },
         "This is a lot of string data. This is a lot of string data. This is a lot of string data.");
 }
コード例 #2
0
 public byte[] GetConverterBytes() =>
 BufferGenerators.GenerateWithConverters(
     22, new Coordinate {
     X = 10, Y = 20, Z = 30
 },
     "This is a lot of string data. This is a lot of string data. This is a lot of string data.");