jvs-packets 1.1.0

A crate that provide structures for JVS protocols
Documentation
  • Coverage
  • 60.56%
    43 out of 71 items documented1 out of 24 items with examples
  • Size
  • Source code size: 41.79 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 4.22 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 10s Average build duration of successful builds.
  • all releases: 10s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • robloxxa/jvs-packets-rs
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • robloxxa

JVS-Packets   Latest Version Docs Status

A packet structures for JAMMA Video Standart protocols.

This crate provides a wrapper around [u8] array with getter and setter methods for easily writing/reading jvs data.


This crate was initially created for my other project MaiFinaleToDX

Example

use jvs_packets::{jvs::{RequestPacket}, ReadPacket, Packet};

fn main() -> std::io::Result<()> {
    // This is only for example. You can use any structure, that implements std::io::Read. 
    let mut reader = std::io::Cursor::new([0xE0, 0xFF, 0x03, 0x01, 0x02, 0x05]);
    let mut req_packet: RequestPacket = RequestPacket::new();
    reader.read_packet(&mut req_packet)?;
    
    assert_eq!(req_packet.size(), 0x03);
    Ok(())
}

License