Merge branch 'main' of https://github.com/MeexReay/rust_mc_proto
This commit is contained in:
commit
e423c556cc
18
test.py
18
test.py
@ -1,18 +0,0 @@
|
|||||||
udata = "fn read_uTYPE_varint(&mut self) -> Result<uTYPE, ProtocolError> { read_varint!(uTYPE, self) }\n"
|
|
||||||
idata = "fn read_iTYPE_varint(&mut self) -> Result<iTYPE, ProtocolError> { Ok(self.read_uTYPE_varint()?.zigzag()) }\n"
|
|
||||||
|
|
||||||
types = ["size", "8", "16", "32", "64", "128"]
|
|
||||||
|
|
||||||
all_data = ""
|
|
||||||
|
|
||||||
for t in types:
|
|
||||||
all_data += udata.replace("TYPE", t)
|
|
||||||
|
|
||||||
print(all_data)
|
|
||||||
|
|
||||||
all_data = ""
|
|
||||||
|
|
||||||
for t in types:
|
|
||||||
all_data += idata.replace("TYPE", t)
|
|
||||||
|
|
||||||
print(all_data)
|
|
Loading…
Reference in New Issue
Block a user