binarystream 1.2.0

Binarystream is a simple package designed to simplify streaming of binary data in Javascript, while being written in Rust.
Documentation
use napi_derive::napi;
use napi::bindgen_prelude::BigInt;
use crate::binary::{ BinaryStream, Endianness };
use crate::types::Uint64;

#[napi]
/**

 * **ULong**
 * 
 * Represents an unsigned 64-bit ( 8 bytes ) integer. ( 0 to 18446744073709551615 )
*/
pub struct ULong {}

#[napi]
impl ULong {
  #[napi]
  /**

   * **read**
   * 
   * Reads an unsigned 64-bit ( 8 bytes ) integer from the stream. ( 0 to 18446744073709551615 )
  */
  pub fn read(stream: &mut BinaryStream, endian: Option<Endianness>) -> BigInt {
    Uint64::read(stream, endian)
  }

  #[napi]
  /**

   * **write**
   * 
   * Writes an unsigned 64-bit ( 8 bytes ) integer to the stream. ( 0 to 18446744073709551615 )
  */
  pub fn write(stream: &mut BinaryStream, value: BigInt, endian: Option<Endianness>) {
    Uint64::write(stream, value, endian);
  }
}