public static float ToValue(byte[] table, int index) { UnionFloat bt = new UnionFloat(); bt.SetBytes(table, index); return(bt.value); }
public int SetBytes(byte[] table, int index) { if (table == null) { throw new System.ArgumentNullException(); } if (table.Length < index + Size) { throw new System.ArgumentOutOfRangeException(); } int idx = index; idx += m_x.SetBytes(table, idx); idx += m_y.SetBytes(table, idx); return(Size); }