a bunch of minor changes combined:

- From instead of Into
- unsafe_data_ref for other payloads
- CByteSlice for returning memory spans
- send Packet instead of Into<Packet>
- expose packet layer to C/C#
This commit is contained in:
Vinzenz Schroeter 2024-05-15 20:34:51 +02:00
parent 5803b71f3a
commit 1dad113ca1
33 changed files with 462 additions and 733 deletions

View file

@ -20,7 +20,7 @@ fn main() {
let connection = Connection::open(&cli.destination).unwrap();
if cli.clear {
connection.send(Command::Clear).unwrap();
connection.send(Command::Clear.into()).unwrap();
}
let mut max_width = 0;
@ -43,6 +43,6 @@ fn main() {
}
connection
.send(Command::Cp437Data(Origin::top_left(), chars))
.send(Command::Cp437Data(Origin::top_left(), chars).into())
.unwrap();
}