use napi_derive::napi;
use napi::Result;
use crate::binary::BinaryStream;
use crate::stream::Endianness;
use crate::types::Float64;
#[napi]
impl BinaryStream {
#[napi]
pub fn read_float64(&mut self, endian: Option<Endianness>) -> Result<f64> {
Float64::read(self, endian)
}
#[napi]
pub fn write_float64(&mut self, value: f64, endian: Option<Endianness>) {
Float64::write(self, value, endian);
}
}