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