public double TakeDouble(out double value, Endian endian) { if (CheckAvailable(8)) { value = ByteConverter.BytesToDouble(buffer, readPosition, endian); readPosition += 8; return(value); } throw eobException; }