public ulong LonglongRead()
 {
     WireFormatting.ReadLonglong(_buffer.Span, out ulong v1);
     return(v1);
 }
Esempio n. 2
0
 public ConnectionOpen(ReadOnlySpan <byte> span)
 {
     WireFormatting.ReadShortstr(span, out _virtualHost);
 }
Esempio n. 3
0
        public override int WriteArgumentsTo(Span <byte> span)
        {
            int offset = WireFormatting.WriteLonglong(ref span.GetStart(), _deliveryTag);

            return(offset + WireFormatting.WriteBits(ref span.GetOffset(offset), _requeue));
        }
Esempio n. 4
0
 public override int WriteArgumentsTo(Span <byte> span)
 {
     return(WireFormatting.WriteShortstr(ref span.GetStart(), _consumerTag));
 }
Esempio n. 5
0
        public BasicCancel(ReadOnlySpan <byte> span)
        {
            int offset = WireFormatting.ReadShortstr(span, out _consumerTag);

            WireFormatting.ReadBits(span.Slice(offset), out _nowait);
        }
 public int TimestampWrite() => WireFormatting.WriteTimestamp(_buffer.Span, _timestamp);
Esempio n. 7
0
 public override int WriteArgumentsTo(Span <byte> span)
 {
     return(WireFormatting.WriteLongstr(span, _challenge));
 }
 public override void Setup() => WireFormatting.WriteDecimal(_buffer.Span, 123.45m);
 public decimal DecimalRead() => WireFormatting.ReadDecimal(_buffer.Span);
 public override void Setup() => WireFormatting.WriteBits(_buffer.Span, true, false, true, false, true);
 public int BoolRead2() => WireFormatting.ReadBits(_buffer.Span, out bool _, out bool _);
 public ushort ShortRead()
 {
     WireFormatting.ReadShort(_buffer.Span, out ushort v1);
     return(v1);
 }
 public override void Setup() => WireFormatting.WriteShort(ref _buffer.Span.GetStart(), 12345);
 public int LonglongWrite(ulong value) => WireFormatting.WriteLonglong(ref _buffer.Span.GetStart(), value);
 public override void Setup() => WireFormatting.WriteTimestamp(_buffer.Span, _timestamp);
 public int DecimalWrite() => WireFormatting.WriteDecimal(_buffer.Span, 123.45m);
 public int TimestampRead() => WireFormatting.ReadTimestamp(_buffer.Span, out _);
 public override void Setup() => WireFormatting.WriteLonglong(_buffer.Span, 12345ul);
Esempio n. 19
0
 public ConnectionSecure(ReadOnlySpan <byte> span)
 {
     WireFormatting.ReadLongstr(span, out _challenge);
 }
 public int LonglongRead() => WireFormatting.ReadLonglong(_buffer.Span, out _);
Esempio n. 21
0
 public BasicConsumeOk(ReadOnlySpan <byte> span)
 {
     WireFormatting.ReadShortstr(span, out _consumerTag);
 }
 public int LonglongWrite(ulong value) => WireFormatting.WriteLonglong(_buffer.Span, value);
Esempio n. 23
0
        public int WriteTo(Span <byte> span)
        {
            int offset = WireFormatting.WriteShortstr(ref span.GetStart(), _consumerTag);

            return(offset + WireFormatting.WriteBits(ref span.GetOffset(offset), _nowait));
        }
 public override void Setup() => WireFormatting.WriteShort(_buffer.Span, 12345);
Esempio n. 25
0
        public override int WriteArgumentsTo(Span <byte> span)
        {
            int offset = WireFormatting.WriteShortstr(span, _consumerTag);

            return(offset + WireFormatting.WriteBits(span.Slice(offset), _nowait));
        }
 public int ShortRead() => WireFormatting.ReadShort(_buffer.Span, out _);
Esempio n. 27
0
        public BasicReject(ReadOnlySpan <byte> span)
        {
            int offset = WireFormatting.ReadLonglong(span, out _deliveryTag);

            WireFormatting.ReadBits(span.Slice(offset), out _requeue);
        }
 public int ShortWrite(ushort value) => WireFormatting.WriteShort(_buffer.Span, value);
 public int WriteArgumentsTo(Span <byte> span)
 {
     return(WireFormatting.WriteBits(ref span.GetStart(), _nowait));
 }
 public override void Setup() => WireFormatting.WriteLonglong(ref _buffer.Span.GetStart(), 12345ul);