Exemple #1
0
        public static Single ReadHalfFloat(Stream input, Endian endian)
        {
            ushort bits = StreamRW.ReadU16(input, endian);
            Half   h    = Half.ToHalf(bits);

            return((Single)h);
        }
Exemple #2
0
 public void WriteUnicodeNullTerminatedString(String text)
 {
     StreamRW.WriteUnicodeNullTerminatedString(_stream, text, _endian);
 }
Exemple #3
0
 public void WriteAnsiNullTerminatedString(String text)
 {
     StreamRW.WriteAnsiNullTerminatedString(_stream, text);
 }
Exemple #4
0
 public void WriteU8(byte value)
 {
     StreamRW.WriteU8(_stream, value);
 }
Exemple #5
0
 public void WriteS8(sbyte value)
 {
     StreamRW.WriteS8(_stream, value);
 }
Exemple #6
0
 public Single ReadSingle()
 {
     return(StreamRW.ReadSingle(_stream, _endian));
 }
Exemple #7
0
 public void WriteDouble(double value)
 {
     StreamRW.WriteDouble(_stream, value, _endian);
 }
Exemple #8
0
 public void WriteU16(UInt16 value)
 {
     StreamRW.WriteU16(_stream, value, _endian);
 }
Exemple #9
0
 public String ReadUnicodeNullTerminatedString()
 {
     return(StreamRW.ReadUnicodeNullTerminatedString(_stream, _endian));
 }
Exemple #10
0
 public Single ReadHalfFloat()
 {
     return(StreamRW.ReadHalfFloat(_stream, _endian));
 }
Exemple #11
0
 public byte ReadU8()
 {
     return(StreamRW.ReadU8(_stream));
 }
Exemple #12
0
 public sbyte ReadS8()
 {
     return(StreamRW.ReadS8(_stream));
 }
Exemple #13
0
 public Double ReadDouble()
 {
     return(StreamRW.ReadDouble(_stream, _endian));
 }
Exemple #14
0
 public UInt64 ReadU64()
 {
     return(StreamRW.ReadU64(_stream, _endian));
 }
Exemple #15
0
 public UInt16 ReadU16()
 {
     return(StreamRW.ReadU16(_stream, _endian));
 }
Exemple #16
0
 public void WriteU32(UInt32 value)
 {
     StreamRW.WriteU32(_stream, value, _endian);
 }
Exemple #17
0
 public void WriteSingle(Single value)
 {
     StreamRW.WriteSingle(_stream, value, _endian);
 }
Exemple #18
0
 public String ReadEncodedFixedString(int length, Encoding encoding)
 {
     return(StreamRW.ReadEncodedFixedString(_stream, length, encoding, _endian));
 }
Exemple #19
0
 public void WriteU64(UInt64 value)
 {
     StreamRW.WriteU64(_stream, value, _endian);
 }
Exemple #20
0
 public String ReadEncodedNullTerminatedString(Encoding encoding)
 {
     return(StreamRW.ReadEncodedNullTerminatedString(_stream, encoding, _endian));
 }
Exemple #21
0
 public String ReadUnicodeFixedString(int length)
 {
     return(StreamRW.ReadUnicodeFixedString(_stream, length, _endian));
 }
Exemple #22
0
 public UInt32 ReadU32()
 {
     return(StreamRW.ReadU32(_stream, _endian));
 }