Ejemplo n.º 1
0
        public void Write(uint value, FieldLength fieldLength)
        {
            var data = BitConverter.GetBytes(value);

            Write(data, fieldLength);
        }
Ejemplo n.º 2
0
        public Task WriteAsync(int value, FieldLength fieldLength, CancellationToken cancellationToken)
        {
            var data = BitConverter.GetBytes(value);

            return(WriteAsync(data, fieldLength, cancellationToken));
        }
Ejemplo n.º 3
0
        public Task WriteAsync(sbyte value, FieldLength fieldLength, CancellationToken cancellationToken)
        {
            var data = new[] { (byte)value };

            return(WriteAsync(data, fieldLength, cancellationToken));
        }
Ejemplo n.º 4
0
        public void Write(sbyte value, FieldLength fieldLength)
        {
            var data = new[] { (byte)value };

            Write(data, fieldLength);
        }
Ejemplo n.º 5
0
        public Task WriteAsync(char value, FieldLength fieldLength, CancellationToken cancellationToken)
        {
            var data = _encoding.GetBytes(new[] { value });

            return(WriteAsync(data, fieldLength, cancellationToken));
        }
Ejemplo n.º 6
0
        public void OnMemberDeserialized(ValueNode sender, string name, object value,
                                         BinaryDataSerializationContext context, FieldLength offset, FieldLength localOffset)
        {
            var handle = MemberDeserialized;

            handle?.Invoke(sender, new MemberSerializedEventArgs(name, value, context, offset, localOffset));
        }