def write(self, stream, seekfirst=True):
"""Write this element to a binary stream.
If this element element is not dirty, this method should reproduce the
byte stream used to read it.
Raises:
+ ValueError: if the object's data cannot be encoded in self.size
bytes.
"""
if seekfirst:
stream.seek(self.pos_absolute, SEEK_SET)
stream.write(self.header.encode())
stream.write(self.encode(self.value, self.size))
# Virtual
评论列表
文章目录