public Single GetFloatAtPos(int pos) { if (pos > (RawBytes.Count - 4)) { return(0); } return(BitConverter.ToSingle(RawBytes.GetRange(pos, 4).ToArray(), 0)); }
public Int32 GetInt32AtPos(int pos) { if (pos > (RawBytes.Count - 4)) { return(0); } return(BitConverter.ToInt32(RawBytes.GetRange(pos, 4).ToArray(), 0)); }
public Int64 GetInt64AtPos(int pos) { if (pos > (RawBytes.Count - 8)) { return(0); } return(BitConverter.ToInt64(RawBytes.GetRange(pos, 8).ToArray(), 0)); }
public Int16 GetInt16AtPos(int pos) { if (pos > (RawBytes.Count - 2)) { return(0); } return(BitConverter.ToInt16(RawBytes.GetRange(pos, 2).ToArray(), 0)); }