MCPcopy
hub / github.com/wbt5/real-url / encode

Method encode

danmu/danmaku/tars/__tup.py:95–105  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

93 return o.read(vtype, 0, True)
94
95 def encode(self):
96 oos = TarsOutputStream()
97 oos.write(self.__mapv, 0, self.__buffer)
98
99 self.__code.iVersion = 2
100 self.__code.sBuffer = oos.getBuffer()
101
102 sos = TarsOutputStream()
103 RequestPacket.writeTo(sos, self.__code)
104
105 return struct.pack('!i', 4 + len(sos.getBuffer())) + sos.getBuffer()
106
107 def decode(self, buf):
108 ois = TarsInputStream(buf[4:])

Callers 15

des_encryptFunction · 0.80
rsa_encryptFunction · 0.80
aes_decryptFunction · 0.80
get_real_urlMethod · 0.80
aes_encryptFunction · 0.80
decodeurlMethod · 0.80
get_real_urlMethod · 0.80
md5Method · 0.80
aes_encryptFunction · 0.80
get_tokenMethod · 0.80
get_real_urlMethod · 0.80
gMethod · 0.80

Calls 5

writeMethod · 0.95
getBufferMethod · 0.95
packMethod · 0.80
TarsOutputStreamClass · 0.70
writeToMethod · 0.45

Tested by

no test coverage detected