Exemplo n.º 1
0
 public ReadOnlyMemory <byte> Bytes_Encode_MAA()
 {
     ScratchByteBuffer.Reset();
     AmqpCodec.EncodeBinary(RandomBytes1MB, ScratchByteBuffer);
     return(ScratchByteBuffer.Buffer.AsMemory(0, ScratchByteBuffer.WritePos));
 }
Exemplo n.º 2
0
 public ReadOnlyMemory <byte> ArrayInt32Encode_MAA_1K()
 {
     ScratchByteBuffer.Reset();
     AmqpCodec.EncodeArray(RandomInt32Array1K, ScratchByteBuffer);
     return(ScratchByteBuffer.Buffer.AsMemory(0, ScratchByteBuffer.WritePos));
 }