本文整理汇总了Python中s3py.io.StreamReader.align方法的典型用法代码示例。如果您正苦于以下问题:Python StreamReader.align方法的具体用法?Python StreamReader.align怎么用?Python StreamReader.align使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类s3py.io.StreamReader
的用法示例。
在下文中一共展示了StreamReader.align方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: read
# 需要导入模块: from s3py.io import StreamReader [as 别名]
# 或者: from s3py.io.StreamReader import align [as 别名]
def read(self, stream, resources=None):
s = StreamReader(stream)
assert s.u16() == self.TAG
self.id = s.u32()
self.time_code = s.f32()
self.unknown1 = s.f32()
self.unknown2 = s.f32()
self.unknown3 = s.u32()
length = s.u32()
self.name = s.zs()
assert len(self.name) == length
s.align()
示例2: read_rcol
# 需要导入模块: from s3py.io import StreamReader [as 别名]
# 或者: from s3py.io.StreamReader import align [as 别名]
def read_rcol(self, stream, rcol):
s = StreamReader(stream)
self.read_tag(stream)
self.version = s.u32()
self.clip = ExternalResource(s.tgi('ITG'))
self.track_mask = ExternalResource(s.tgi('ITG'))
cActorSlots = s.i32()
assert s.u32() == 0
assert s.u32() == 0
assert s.u32() == 0
self.actor_slots = [self.SlotAssignment(stream) for i in range(cActorSlots)]
self.actor_iks = [self.NamespaceSlotSuffix(stream) for i in range(s.i32())]
assert s.u32() == DEADBEEF
self.additive_clip = ExternalResource(s.tgi('ITG'))
self.clip_pattern = s.p32(size=16)
s.align()
self.additive_clip_pattern = s.p32(size=16)
s.align()
assert s.u32() == DEADBEEF
AnimationNode.read_rcol(self, stream, rcol)