public static int Read(this VFile source, out bool value) { bool val; var r = source.Read((byte *)&val, sizeof(bool)); value = val; return(r); }
public static int Read(this VFile source, out float value) { float val; var r = source.Read((byte *)&val, sizeof(float)); value = val; return(r); }
public static int Read(this VFile source, out ushort value) { ushort val; var r = source.Read((byte *)&val, sizeof(ushort)); value = val; return(r); }
public static int Read(this VFile source, out long value) { long val; var r = source.Read((byte *)&val, sizeof(long)); value = val; return(r); }