public static void Write(this NetBinaryWriter writer, Identifier identifier)
 {
     writer.Write((Utf8String)identifier.Value);
 }
 public static void Write(this NetBinaryWriter writer, Chat chat)
 {
     writer.Write(chat.Value);
 }
 public static void Write(this NetBinaryWriter writer, Position position)
 {
     writer.Write((long)position.Value);
 }
 public static void Write(this NetBinaryWriter writer, Angle angle)
 {
     writer.Write(angle.Value);
 }
Esempio n. 5
0
 public static void Write(this NetBinaryWriter writer, Utf8Identifier identifier)
 {
     writer.Write(identifier.Value);
 }
Esempio n. 6
0
 static void WriteBytes(NetBinaryWriter writer, ReadOnlySpan <int> source)
 {
     writer.Write(MemoryMarshal.AsBytes(source));
 }
Esempio n. 7
0
        // TODO: vectorize the reversed writers??

        public static void Write(this NetBinaryWriter writer, ReadOnlySpan <sbyte> values)
        {
            writer.Write(MemoryMarshal.Cast <sbyte, byte>(values));
        }