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 crate::binary::BinaryStream;
use crate::stream::Endianness;
use crate::types::String32;

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

   * **readString32**
   * 
   * Reads a signed 32-bit ( 4 bytes ) utf-8 string from the stream. ( 0 to 4294967295 )
  */
  pub fn read_string32(&mut self, endian: Option<Endianness>) -> String {
    String32::read(self, endian)
  }

  #[napi]
  /**

   * **writeString32**
   * 
   * Writes a signed 32-bit ( 4 bytes ) utf-8 string to the stream. ( 0 to 4294967295 )
  */
  pub fn write_string32(&mut self, value: String, endian: Option<Endianness>) {
    String32::write(self, value, endian);
  }
}