예제 #1
0
 def pack(self, s):
     fs = FakeWriteStream()
     self["content"].pack(fs)
     self["header"].data["length"] = fs.tell()
     Struct.pack(self, s)
예제 #2
0
 def pack(self, s):
     fs = FakeWriteStream()
     self["content"].pack(fs)
     self["header"].data["length"] = fs.tell()
     Struct.pack(self, s)
예제 #3
0
 def pack(self, s):
     with BitWriteStream(s) as bs:
         Struct.pack(self, bs)
예제 #4
0
 def pack(self, s):
     with BitWriteStream(s) as bs:
         Struct.pack(self, bs)