public float TakeFloat(out float value, Endian endian) { if (CheckAvailable(4)) { value = ByteConverter.BytesToSingle(buffer, readPosition, endian); readPosition += 4; return(value); } throw eobException; }