MCPcopy Index your code
hub / github.com/pyload/pyload / writeString

Method writeString

module/remote/thriftbackend/Protocol.py:6–13  ·  view source on GitHub ↗
(self, str)

Source from the content-addressed store, hash-verified

4
5class Protocol(TBinaryProtocol.TBinaryProtocol):
6 def writeString(self, str):
7 try:
8 str = str.encode("utf8", "ignore")
9 except Exception, e:
10 pass
11
12 self.writeI32(len(str))
13 self.trans.write(str)
14
15 def readString(self):
16 len = self.readI32()

Callers

nothing calls this directly

Calls 3

encodeMethod · 0.45
writeI32Method · 0.45
writeMethod · 0.45

Tested by

no test coverage detected