Skip to content

A crate that provide structures for working with JVS protocols in rust

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

robloxxa/jvs-packets-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Licensed under either of Apache License, Version 2.0 or MIT license at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in JVS-packets-rs by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

About

A crate that provide structures for working with JVS protocols in rust

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages