o_o
This commit is contained in:
parent
5292e5960e
commit
0b6c73f755
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