update main.rs
This commit is contained in:
parent
c9974e4140
commit
d55bc24c10
11
src/main.rs
11
src/main.rs
@ -6,11 +6,16 @@ use d::*;
|
|||||||
|
|
||||||
use std::thread;
|
use std::thread;
|
||||||
|
|
||||||
|
fn get_byte_size(i: i32) -> u8 {
|
||||||
|
for j in 1..4 {
|
||||||
|
if (i & -1 << (j * 7)) == 0 {
|
||||||
|
return j;
|
||||||
|
}
|
||||||
|
}; return 5;
|
||||||
|
}
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let mut a = Buffer::new(vec![0x01,0xFF,0x33], 0);
|
println!("{}", get_byte_size(-2147483648));
|
||||||
a.ts();
|
|
||||||
|
|
||||||
// let Ok(server) = Server::new("127.0.0.1:25565") else {
|
// let Ok(server) = Server::new("127.0.0.1:25565") else {
|
||||||
// println!("Не удалось забиндить сервер"); return;
|
// println!("Не удалось забиндить сервер"); return;
|
||||||
|
Loading…
Reference in New Issue
Block a user