public ReadSingle ( EndianType endianType ) : System.Single | ||
endianType | EndianType | |
Результат | System.Single |
public override void Construct(BinaryEndianReader br, QbItemType type) { //System.Diagnostics.Debug.WriteLine(string.Format("{0} - 0x{1}", type.ToString(), (base.StreamPos(br) - 4).ToString("X").PadLeft(8, '0'))); base.Construct(br, type); _values[0] = br.ReadSingle(base.Root.PakFormat.EndianType); _values[1] = br.ReadSingle(base.Root.PakFormat.EndianType); if (_values.Length > 2) { _values[2] = br.ReadSingle(base.Root.PakFormat.EndianType); } base.ConstructEnd(br); }
public override void Construct(BinaryEndianReader br, QbItemType type) { //System.Diagnostics.Debug.WriteLine(string.Format("{0} - 0x{1}", type.ToString(), (base.StreamPos(br) - 4).ToString("X").PadLeft(8, '0'))); base.Construct(br, type); _values = new float[base.ItemCount]; for (int i = 0; i < base.ItemCount; i++) { _values[i] = br.ReadSingle(base.Root.PakFormat.EndianType); } base.ConstructEnd(br); }