use napi_derive::napi;
use napi::bindgen_prelude::BigInt;
use crate::binary::{ BinaryStream, Endianness };
use crate::types::Uint64;
#[napi]
pub struct ULong {}
#[napi]
impl ULong {
#[napi]
pub fn read(stream: &mut BinaryStream, endian: Option<Endianness>) -> BigInt {
Uint64::read(stream, endian)
}
#[napi]
pub fn write(stream: &mut BinaryStream, value: BigInt, endian: Option<Endianness>) {
Uint64::write(stream, value, endian);
}
}