/// <summary> /// Reads a float from the stream, and advances the index accordingly. /// </summary> /// <returns>the next 4 bytes from the stream cast as a float</returns> public float ReadFloat() { byte[] temp = new byte[INTLENGTH]; _stream.Read(temp, 0, INTLENGTH); return(ByteConversion.ToFloat(temp, 0)); }