Beispiel #1
0
 public static int Write(this VFile source, bool value) => source.Write((byte *)&value, sizeof(bool));
Beispiel #2
0
 public static int Write(this VFile source, ushort value) => source.Write((byte *)&value, sizeof(ushort));
Beispiel #3
0
 public static int Write(this VFile source, ulong value) => source.Write((byte *)&value, sizeof(ulong));
Beispiel #4
0
 public static int Write(this VFile source, float value) => source.Write((byte *)&value, sizeof(float));
Beispiel #5
0
 public static int WriteASCII(this VFile source, string value, int length) => source.Write(Encoding.ASCII.GetBytes(value), value.Length);