BigEndianReader

BigEndianReader

概述

BigEndianReader 是 Aspose.Psd FOSS 中用于 Python 的类。

从流中读取大端序数据。

此类为 Python 程序中的 BigEndianReader 对象声明了 19 个方法。可用的方法包括:__init__、dispose、read_byte、read_bytes、read_double、read_exactly、read_int16、read_int32、read_int64、read_pascal_string、read_pascal_string_aligned_to2、read_pascal_string_aligned_to4,以及另外 7 个方法。公共成员在安装了 Aspose.Psd FOSS for Python 包后,可供任何 Python 应用程序访问。属性:length、position。

属性

名称类型访问描述
positionint读取获取位置。
lengthint读取获取长度。

方法

签名描述
__init__(stream: io.BufferedIOBase, leave_open: bool)Calls init(stream, leave_open) 在此 BigEndianReader 实例上。
seek(offset: int, origin: int)在此 BigEndianReader 实例上调用 seek(offset, origin)。
read_byte() → int在此 BigEndianReader 实例上调用 read_byte。
read_sbyte() → int在此 BigEndianReader 实例上调用 read_sbyte。
read_bytes(count: int) → bytes在此 BigEndianReader 实例上调用 read_bytes(count)。
read_int16() → int在此 BigEndianReader 实例上调用 read_int16。
read_uint16() → int在此 BigEndianReader 实例上调用 read_uint16。
read_int32() → int在此 BigEndianReader 实例上调用 read_int32。
read_uint32() → int在此 BigEndianReader 实例上调用 read_uint32。
read_int64() → int在此 BigEndianReader 实例上调用 read_int64。
read_uint64() → int在此 BigEndianReader 实例上调用 read_uint64。
read_single() → float在此 BigEndianReader 实例上调用 read_single。
read_double() → float在此 BigEndianReader 实例上调用 read_double。
read_pascal_string(max_length: int) → str在此 BigEndianReader 实例上调用 read_pascal_string(max_length)。
read_pascal_string_aligned_to2(max_length: int) → str在此 BigEndianReader 实例上调用 read_pascal_string_aligned_to2(max_length)。
read_pascal_string_aligned_to4(max_length: int) → str在此 BigEndianReader 实例上调用 read_pascal_string_aligned_to4(max_length)。
read_exactly(size: int) → bytes在此 BigEndianReader 实例上调用 read_exactly(size)。
skip(count: int)在此 BigEndianReader 实例上调用 skip(count)。
dispose()对该 BigEndianReader 实例调用 dispose。

另请参阅

 中文