Exemplo n.º 1
0
        public static void WriteBoolean(bool value, ProtoWriter writer)
        {
            State state = writer.DefaultState();

            WriteBoolean(value, writer, ref state);
        }
Exemplo n.º 2
0
        public static void AppendExtensionData(IExtensible instance, ProtoWriter writer)
        {
            State state = writer.DefaultState();

            AppendExtensionData(instance, writer, ref state);
        }
Exemplo n.º 3
0
        public static void WriteInt32(int value, ProtoWriter writer)
        {
            State state = writer.DefaultState();

            WriteInt32(value, writer, ref state);
        }
Exemplo n.º 4
0
 public static void WriteDuration(TimeSpan value, ProtoWriter dest)
 {
     ProtoWriter.State state = dest.DefaultState();
     WriteDuration(value, dest, ref state);
 }
Exemplo n.º 5
0
        public static void EndSubItem(SubItemToken token, ProtoWriter writer)
        {
            State state = writer.DefaultState();

            writer.EndSubItem(ref state, token, PrefixStyle.Base128);
        }
Exemplo n.º 6
0
        public static void WriteInt64(long value, ProtoWriter writer)
        {
            State state = writer.DefaultState();

            WriteInt64(value, writer, ref state);
        }
Exemplo n.º 7
0
 public static void WriteObject(object value, Type type, ProtoWriter writer)
 => writer.DefaultState().WriteObject(value, type);
Exemplo n.º 8
0
        public static void WriteBytes(byte[] data, int offset, int length, ProtoWriter writer)
        {
            State state = writer.DefaultState();

            WriteBytes(data, offset, length, writer, ref state);
        }
Exemplo n.º 9
0
 public static void WriteTimeSpan(TimeSpan timeSpan, ProtoWriter dest)
 {
     ProtoWriter.State state = dest.DefaultState();
     WriteTimeSpanImpl(timeSpan, dest, DateTimeKind.Unspecified, ref state);
 }
Exemplo n.º 10
0
 public static void EndSubItem(SubItemToken token, ProtoWriter writer)
 => writer.DefaultState().EndSubItem(token, PrefixStyle.Base128);
Exemplo n.º 11
0
 public static void WriteDecimal(decimal value, ProtoWriter writer)
 {
     ProtoWriter.State state = writer.DefaultState();
     WriteDecimal(value, writer, ref state);
 }
Exemplo n.º 12
0
 public static void WriteDateTimeWithKind(DateTime value, ProtoWriter dest)
 {
     ProtoWriter.State state = dest.DefaultState();
     WriteDateTimeImpl(value, dest, true, ref state);
 }
Exemplo n.º 13
0
 public static void WriteTimestamp(DateTime value, ProtoWriter dest)
 {
     ProtoWriter.State state = dest.DefaultState();
     WriteTimestamp(value, dest, ref state);
 }
Exemplo n.º 14
0
        public static void WriteFieldHeader(int fieldNumber, WireType wireType, ProtoWriter writer)
        {
            State state = writer.DefaultState();

            WriteFieldHeader(fieldNumber, wireType, writer, ref state);
        }
Exemplo n.º 15
0
 public static void WriteFieldHeader(int fieldNumber, WireType wireType, ProtoWriter writer)
 => writer.DefaultState().WriteFieldHeader(fieldNumber, wireType);
Exemplo n.º 16
0
        public static void WriteBytes(byte[] data, ProtoWriter writer)
        {
            State state = writer.DefaultState();

            WriteBytes(data, writer, ref state);
        }
Exemplo n.º 17
0
 public static void WriteBytes(byte[] data, ProtoWriter writer)
 => writer.DefaultState().WriteBytes(data);
Exemplo n.º 18
0
        public static SubItemToken StartSubItem(object instance, ProtoWriter writer)
        {
            State state = writer.DefaultState();

            return(writer.StartSubItem(ref state, instance, PrefixStyle.Base128));
        }
Exemplo n.º 19
0
 public static void WriteBytes(byte[] data, int offset, int length, ProtoWriter writer)
 => writer.DefaultState().WriteBytes(new ReadOnlyMemory <byte>(data, offset, length));
Exemplo n.º 20
0
        public static void WriteString(string value, ProtoWriter writer)
        {
            State state = writer.DefaultState();

            WriteString(value, writer, ref state);
        }
Exemplo n.º 21
0
 public static SubItemToken StartSubItem(object instance, ProtoWriter writer)
 => writer.DefaultState().StartSubItem(instance, PrefixStyle.Base128);
Exemplo n.º 22
0
        public static void WriteRecursionSafeObject(object value, int key, ProtoWriter writer)
        {
            State state = writer.DefaultState();

            WriteRecursionSafeObject(value, key, writer, ref state);
        }
Exemplo n.º 23
0
        public static void WriteSingle(float value, ProtoWriter writer)
        {
            State state = writer.DefaultState();

            WriteSingle(value, writer, ref state);
        }
Exemplo n.º 24
0
        public static void WriteDouble(double value, ProtoWriter writer)
        {
            State state = writer.DefaultState();

            WriteDouble(value, writer, ref state);
        }
Exemplo n.º 25
0
        public static void WriteTimeSpan(TimeSpan timeSpan, ProtoWriter dest)
        {
            var state = dest.DefaultState();

            WriteTimeSpanImpl(ref state, timeSpan, DateTimeKind.Unspecified);
        }