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