首页 / base / oaPackedData

oaPackedData

模块: oapy._oa._base 导入: from oapy._oa import _base

概览

oaPackedDataoapy 中可用,可通过 _base 模块访问。

本页汇总 oaPackedData 当前在 oapy 中可用的 Python 接口。

详细说明

The oaPackedData class implements an interface object used to read and write various types of data from and to a byte array, in either a packed form or as standard data types that could require byte-swapping。 This class is primarily used internally to OpenAccess, but it is public because it can be used to store private data in a pcell supermaster that is used to evaluate instances of that pcell。 For example, it could be used to store a tokenized extension language routine that performs the evaluation for the pcell。 Such users do not ever construct an oaPackedData。 They only need to use the various read and write functions documented here。 Byte swapping is handled automatically for them。 See oaPcellDataCallback::onPcellRead and oaPcellDataCallback::onPcellWrite for the starting point of the calls that such users will invoke。 An oaPackedData is handed to the caller by oaMapWindow::data 。 The caller is responsible for making sure their sequence of read calls match exactly the sequence of write calls that previously wrote the data into an oaPackedData。

方法总览

状态 Python 调用
obj.data()
obj.size()
obj.swap()
obj.data()
obj.size()
obj.swap()
obj.writeByte(loc, val)
obj.writeBytes(loc, numObjects, val)
obj.writeInt2(loc, val)
obj.writeInt4(loc, val)
obj.writeInt8(loc, val)
obj.writeUInt2(loc, val)
obj.writeUInt4(loc, val)
obj.writeUInt8(loc, val)
obj.writeFloat(loc, val)
obj.writeDouble(loc, val)
obj.writeTime(loc, val)
obj.writeString(loc, val)
obj.writePoint(loc, val)
obj.writeBox(loc, val)
obj.writeUnalignedUInt4(loc, val)
obj.writeRef(loc, ref)
obj.writeRef(loc, ref)
obj.writeRef(loc, ref)
obj.writeRef(loc, ref)
obj.writeByteArray(loc, numObjects, val)
obj.writeInt2Array(loc, numObjects, val)
obj.writeInt4Array(loc, numObjects, val)
obj.writeInt8Array(loc, numObjects, val)
obj.writeUInt2Array(loc, numObjects, val)
obj.writeUInt4Array(loc, numObjects, val)
obj.writeUInt8Array(loc, numObjects, val)
obj.writeFloatArray(loc, numObjects, val)
obj.writeDoubleArray(loc, numObjects, val)
obj.writePointArray(loc, numObjects, val)
obj.writeBoxArray(loc, numObjects, val)
obj.readByte(loc, val)
obj.readBytes(loc, numObjects, val)
obj.readInt2(loc, val)
obj.readInt4(loc, val)
obj.readInt8(loc, val)
obj.readUInt2(loc, val)
obj.readUInt4(loc, val)
obj.readUInt8(loc, val)
obj.readFloat(loc, val)
obj.readDouble(loc, val)
obj.readTime(loc, val)
obj.readString(loc, val)
obj.readPoint(loc, val)
obj.readBox(loc, val)
obj.readUnalignedUInt4(loc, val)
obj.readRef(loc, ref)
obj.readRef(loc, ref)
obj.readRef(loc, ref)
obj.readRef(loc, ref)
obj.readByteArray(loc, numObjects, val)
obj.readInt2Array(loc, numObjects, val)
obj.readInt4Array(loc, numObjects, val)
obj.readInt8Array(loc, numObjects, val)
obj.readUInt2Array(loc, numObjects, val)
obj.readUInt4Array(loc, numObjects, val)
obj.readUInt8Array(loc, numObjects, val)
obj.readFloatArray(loc, numObjects, val)
obj.readDoubleArray(loc, numObjects, val)
obj.readPointArray(loc, numObjects, val)
obj.readBoxArray(loc, numObjects, val)
obj.writePackedInt4(loc, val)
obj.writePackedInt8(loc, val)
obj.writePackedUInt4(loc, val)
obj.writePackedUInt8(loc, val)
obj.writePackedFloat(loc, val)
obj.writePackedDouble(loc, val)
obj.writePackedTime(loc, val)
obj.writePackedPoint(loc, point)
obj.writePackedBox(loc, box)
obj.writePackedPointArray(loc, points, isOrtho, isVFst)
obj.writePackedRef(loc, ref)
obj.writePackedRef(loc, ref)
obj.writePackedRef(loc, ref)
obj.writePackedRef(loc, ref)
obj.readPackedInt4(loc, val)
obj.readPackedInt8(loc, val)
obj.readPackedUInt4(loc, val)
obj.readPackedUInt8(loc, val)
obj.readPackedFloat(loc, val)
obj.readPackedDouble(loc, val)
obj.readPackedTime(loc, val)
obj.readPackedPoint(loc, point)
obj.readPackedBox(loc, box)
obj.readPackedPointArray(loc, points, numPoints, isOrthogonal, isVertFirst)
obj.readPackedRef(loc, ref)
obj.readPackedRef(loc, ref)
obj.readPackedRef(loc, ref)
obj.readPackedRef(loc, ref)
obj.getPackedInt4Size(loc)
obj.getPackedInt8Size(loc)
obj.getPackedFloatSize(loc)
obj.getPackedDoubleSize(loc)
obj.getPackedTimeSize(loc)
obj.getPackedPointSize(loc)
obj.getPackedBoxSize(loc)
obj.getPackedPointArraySize(loc, numPoints, isOrtho)

方法说明

obj.data()

绑定状态: 已绑定

Python 调用: obj.data()

This function returns the byte array of this packed data。

Python 示例

from oapy._oa import _base

# assume obj is a oaPackedData
obj.data()

obj.size()

绑定状态: 已绑定

Python 调用: obj.size()

This function returns the byte array size of this packed data。

Python 示例

from oapy._oa import _base

# assume obj is a oaPackedData
obj.size()

obj.swap()

绑定状态: 已绑定

Python 调用: obj.swap()

This function returns the swap flag of this packed data。

Python 示例

from oapy._oa import _base

# assume obj is a oaPackedData
obj.swap()

obj.data()

绑定状态: 已绑定

Python 调用: obj.data()

This function returns the reference of the byte array of this packed data。

Python 示例

from oapy._oa import _base

# assume obj is a oaPackedData
obj.data()

obj.size()

绑定状态: 已绑定

Python 调用: obj.size()

This function returns the reference of byte array size of this packed data。

Python 示例

from oapy._oa import _base

# assume obj is a oaPackedData
obj.size()

obj.swap()

绑定状态: 已绑定

Python 调用: obj.swap()

This function returns the reference of the swap flag of this packed data。

Python 示例

from oapy._oa import _base

# assume obj is a oaPackedData
obj.swap()

obj.writeByte(loc, val)

绑定状态: 已绑定

Python 调用: obj.writeByte(loc, val)

This function writes a byte to the packed data at the specified location。 The location index is then incremented past the data that is written。

Python 示例

from oapy._oa import _base

# assume obj is a oaPackedData
obj.writeByte(loc, val)

obj.writeBytes(loc, numObjects, val)

绑定状态: 已绑定

Python 调用: obj.writeBytes(loc, numObjects, val)

This function writes a byte array to the packed data at the specified location。 The location index is then incremented past the data that is written。

Python 示例

from oapy._oa import _base

# assume obj is a oaPackedData
obj.writeBytes(loc, numObjects, val)

obj.writeInt2(loc, val)

绑定状态: 已绑定

Python 调用: obj.writeInt2(loc, val)

This function writes an oaInt2 value to the packed data at the specified location。 The location index is then incremented past the data that is written。

Python 示例

from oapy._oa import _base

# assume obj is a oaPackedData
obj.writeInt2(loc, val)

obj.writeInt4(loc, val)

绑定状态: 已绑定

Python 调用: obj.writeInt4(loc, val)

This function writes an oaInt4 value to the packed data at the specified location。 The location index is then incremented past the data that is written。

Python 示例

from oapy._oa import _base

# assume obj is a oaPackedData
obj.writeInt4(loc, val)

obj.writeInt8(loc, val)

绑定状态: 已绑定

Python 调用: obj.writeInt8(loc, val)

This function writes an oaInt8 value to the packed data at the specified location。 The location index is aligned and then incremented past the data that is written。

Python 示例

from oapy._oa import _base

# assume obj is a oaPackedData
obj.writeInt8(loc, val)

obj.writeUInt2(loc, val)

绑定状态: 已绑定

Python 调用: obj.writeUInt2(loc, val)

This function writes an oaUInt2 value to the packed data at the specified location。 The location index is then incremented past the data that is written。

Python 示例

from oapy._oa import _base

# assume obj is a oaPackedData
obj.writeUInt2(loc, val)

obj.writeUInt4(loc, val)

绑定状态: 已绑定

Python 调用: obj.writeUInt4(loc, val)

This function writes an oaUInt4 value to the packed data at the specified location。 The location index is then incremented past the data that is written。

Python 示例

from oapy._oa import _base

# assume obj is a oaPackedData
obj.writeUInt4(loc, val)

obj.writeUInt8(loc, val)

绑定状态: 已绑定

Python 调用: obj.writeUInt8(loc, val)

This function writes an oaUInt8 value to the packed data at the specified location。 The location index is aligned and then incremented past the data that is written。

Python 示例

from oapy._oa import _base

# assume obj is a oaPackedData
obj.writeUInt8(loc, val)

obj.writeFloat(loc, val)

绑定状态: 已绑定

Python 调用: obj.writeFloat(loc, val)

This function writes an oaFloat value to the packed data at the specified location。 The location index is then incremented past the data that is written。

Python 示例

from oapy._oa import _base

# assume obj is a oaPackedData
obj.writeFloat(loc, val)

obj.writeDouble(loc, val)

绑定状态: 已绑定

Python 调用: obj.writeDouble(loc, val)

This function writes an oaDouble value to the packed data at the specified location。 The location index is aligned and then incremented past the data that is written。

Python 示例

from oapy._oa import _base

# assume obj is a oaPackedData
obj.writeDouble(loc, val)

obj.writeTime(loc, val)

绑定状态: 已绑定

Python 调用: obj.writeTime(loc, val)

This function writes an oaTime value to the packed data at the specified location。 The location index is then incremented past the data that is written。

Python 示例

from oapy._oa import _base

# assume obj is a oaPackedData
obj.writeTime(loc, val)

obj.writeString(loc, val)

绑定状态: 已绑定

Python 调用: obj.writeString(loc, val)

This function writes a string to the packed data at the specified location。 The location index is then incremented past the data that is written。

Python 示例

from oapy._oa import _base

# assume obj is a oaPackedData
obj.writeString(loc, val)

obj.writePoint(loc, val)

绑定状态: 已绑定

Python 调用: obj.writePoint(loc, val)

This function writes an oaPoint to the packed data at the specified location。 The location index is then incremented past the data that is written。

Python 示例

from oapy._oa import _base

# assume obj is a oaPackedData
obj.writePoint(loc, val)

obj.writeBox(loc, val)

绑定状态: 已绑定

Python 调用: obj.writeBox(loc, val)

This function writes an oaBox to the packed data at the specified location。 The location index is then incremented past the data that is written。

Python 示例

from oapy._oa import _base

# assume obj is a oaPackedData
obj.writeBox(loc, val)

obj.writeUnalignedUInt4(loc, val)

绑定状态: 已绑定

Python 调用: obj.writeUnalignedUInt4(loc, val)

This function writes an unaligned UInt4 array to the packed data at the specified location。 The location index is then incremented past the data that is written。

Python 示例

from oapy._oa import _base

# assume obj is a oaPackedData
obj.writeUnalignedUInt4(loc, val)

obj.writeRef(loc, ref)

绑定状态: 已绑定

Python 调用: obj.writeRef(loc, ref)

Python 示例

from oapy._oa import _base

# assume obj is a oaPackedData
obj.writeRef(loc, ref)

obj.writeRef(loc, ref)

绑定状态: 已绑定

Python 调用: obj.writeRef(loc, ref)

Python 示例

from oapy._oa import _base

# assume obj is a oaPackedData
obj.writeRef(loc, ref)

obj.writeRef(loc, ref)

绑定状态: 已绑定

Python 调用: obj.writeRef(loc, ref)

Python 示例

from oapy._oa import _base

# assume obj is a oaPackedData
obj.writeRef(loc, ref)

obj.writeRef(loc, ref)

绑定状态: 已绑定

Python 调用: obj.writeRef(loc, ref)

Python 示例

from oapy._oa import _base

# assume obj is a oaPackedData
obj.writeRef(loc, ref)

obj.writeByteArray(loc, numObjects, val)

绑定状态: 已绑定

Python 调用: obj.writeByteArray(loc, numObjects, val)

This function writes a byte array to the packed data at the specified location。 The location index is then incremented past the data that is written。 This operation is 4-byte aligned。

Python 示例

from oapy._oa import _base

# assume obj is a oaPackedData
obj.writeByteArray(loc, numObjects, val)

obj.writeInt2Array(loc, numObjects, val)

绑定状态: 已绑定

Python 调用: obj.writeInt2Array(loc, numObjects, val)

This function writes an oaInt2 array to the packed data at the specified location。 The location index is then incremented past the data that is written。 This operation is 4-byte aligned。

Python 示例

from oapy._oa import _base

# assume obj is a oaPackedData
obj.writeInt2Array(loc, numObjects, val)

obj.writeInt4Array(loc, numObjects, val)

绑定状态: 已绑定

Python 调用: obj.writeInt4Array(loc, numObjects, val)

This function writes an oaInt4 array to the packed data at the specified location。 The location index is then incremented past the data that is written。

Python 示例

from oapy._oa import _base

# assume obj is a oaPackedData
obj.writeInt4Array(loc, numObjects, val)

obj.writeInt8Array(loc, numObjects, val)

绑定状态: 已绑定

Python 调用: obj.writeInt8Array(loc, numObjects, val)

This function writes an oaInt8 array to the packed data at the specified location。 The location index is then incremented past the array that is written。 All array writes are 4-byte aligned。

Python 示例

from oapy._oa import _base

# assume obj is a oaPackedData
obj.writeInt8Array(loc, numObjects, val)

obj.writeUInt2Array(loc, numObjects, val)

绑定状态: 已绑定

Python 调用: obj.writeUInt2Array(loc, numObjects, val)

This function writes an oaUInt2 array to the packed data at the specified location。 The location index is then incremented past the data that is written。 This operation is 4-byte aligned。

Python 示例

from oapy._oa import _base

# assume obj is a oaPackedData
obj.writeUInt2Array(loc, numObjects, val)

obj.writeUInt4Array(loc, numObjects, val)

绑定状态: 已绑定

Python 调用: obj.writeUInt4Array(loc, numObjects, val)

This function writes an oaUInt4 array to the packed data at the specified location。 The location index is then incremented past the data that is written。

Python 示例

from oapy._oa import _base

# assume obj is a oaPackedData
obj.writeUInt4Array(loc, numObjects, val)

obj.writeUInt8Array(loc, numObjects, val)

绑定状态: 已绑定

Python 调用: obj.writeUInt8Array(loc, numObjects, val)

This function writes an oaUInt8 array to the packed data at the specified location。 The location index is then incremented past the data that is written。

Python 示例

from oapy._oa import _base

# assume obj is a oaPackedData
obj.writeUInt8Array(loc, numObjects, val)

obj.writeFloatArray(loc, numObjects, val)

绑定状态: 已绑定

Python 调用: obj.writeFloatArray(loc, numObjects, val)

This function writes an oaFloat array to the packed data at the specified location。 The location index is then incremented past the data that is written。

Python 示例

from oapy._oa import _base

# assume obj is a oaPackedData
obj.writeFloatArray(loc, numObjects, val)

obj.writeDoubleArray(loc, numObjects, val)

绑定状态: 已绑定

Python 调用: obj.writeDoubleArray(loc, numObjects, val)

This function writes an oaDouble array to the packed data at the specified location。 The location index is then incremented past the data that is written。

Python 示例

from oapy._oa import _base

# assume obj is a oaPackedData
obj.writeDoubleArray(loc, numObjects, val)

obj.writePointArray(loc, numObjects, val)

绑定状态: 已绑定

Python 调用: obj.writePointArray(loc, numObjects, val)

This function writes an oaPoint array to the packed data at the specified location。 The location index is then incremented past the data that is written。

Python 示例

from oapy._oa import _base

# assume obj is a oaPackedData
obj.writePointArray(loc, numObjects, val)

obj.writeBoxArray(loc, numObjects, val)

绑定状态: 已绑定

Python 调用: obj.writeBoxArray(loc, numObjects, val)

This function writes an oaBox array to the packed data at the specified location。 The location index is then incremented past the data that is written。

Python 示例

from oapy._oa import _base

# assume obj is a oaPackedData
obj.writeBoxArray(loc, numObjects, val)

obj.readByte(loc, val)

绑定状态: 已绑定

Python 调用: obj.readByte(loc, val)

This function reads a byte from the packed data at the specified location。 The location index is then incremented past the data that is read。

Python 示例

from oapy._oa import _base

# assume obj is a oaPackedData
obj.readByte(loc, val)

obj.readBytes(loc, numObjects, val)

绑定状态: 已绑定

Python 调用: obj.readBytes(loc, numObjects, val)

This function reads a byte array from the packed data at the specified location。 The location index is then incremented past the data that is read。

Python 示例

from oapy._oa import _base

# assume obj is a oaPackedData
obj.readBytes(loc, numObjects, val)

obj.readInt2(loc, val)

绑定状态: 已绑定

Python 调用: obj.readInt2(loc, val)

This function reads an oaInt2 value from the packed data at the specified location。 The location index is then incremented past the data that is read。 Byte-swapping is performed if the swap-flag is set。

Python 示例

from oapy._oa import _base

# assume obj is a oaPackedData
obj.readInt2(loc, val)

obj.readInt4(loc, val)

绑定状态: 已绑定

Python 调用: obj.readInt4(loc, val)

This function reads an oaInt4 value from the packed data at the specified location。 The location index is then incremented past the data that is read。 Byte-swapping is performed if the swap-flag is set。

Python 示例

from oapy._oa import _base

# assume obj is a oaPackedData
obj.readInt4(loc, val)

obj.readInt8(loc, val)

绑定状态: 已绑定

Python 调用: obj.readInt8(loc, val)

This function reads an oaInt8 value from the packed data at the specified location。 The location index is aligned and then incremented past the data that is read。 Byte-swapping is performed if the swap-flag is set。

Python 示例

from oapy._oa import _base

# assume obj is a oaPackedData
obj.readInt8(loc, val)

obj.readUInt2(loc, val)

绑定状态: 已绑定

Python 调用: obj.readUInt2(loc, val)

This function reads an oaUInt2 value from the packed data at the specified location。 The location index is then incremented past the data that is read。 Byte-swapping is performed if the swap-flag is set。

Python 示例

from oapy._oa import _base

# assume obj is a oaPackedData
obj.readUInt2(loc, val)

obj.readUInt4(loc, val)

绑定状态: 已绑定

Python 调用: obj.readUInt4(loc, val)

This function reads an oaUInt4 value from the packed data at the specified location。 The location index is then incremented past the data that is read。 Byte-swapping is performed if the swap-flag is set。

Python 示例

from oapy._oa import _base

# assume obj is a oaPackedData
obj.readUInt4(loc, val)

obj.readUInt8(loc, val)

绑定状态: 已绑定

Python 调用: obj.readUInt8(loc, val)

This function reads an oaUInt8 value from the packed data at the specified location。 The location index is aligned and then incremented past the data that is read。 Byte-swapping is performed if the swap-flag is set。

Python 示例

from oapy._oa import _base

# assume obj is a oaPackedData
obj.readUInt8(loc, val)

obj.readFloat(loc, val)

绑定状态: 已绑定

Python 调用: obj.readFloat(loc, val)

This function reads an oaFloat value from the packed data at the specified location。 The location index is then incremented past the data that is read。 Byte-swapping is performed if the swap-flag is set。

Python 示例

from oapy._oa import _base

# assume obj is a oaPackedData
obj.readFloat(loc, val)

obj.readDouble(loc, val)

绑定状态: 已绑定

Python 调用: obj.readDouble(loc, val)

This function reads an oaDouble value from the packed data at the specified location。 The location index is then incremented past the data that is read。 Byte-swapping is performed if the swap-flag is set。

Python 示例

from oapy._oa import _base

# assume obj is a oaPackedData
obj.readDouble(loc, val)

obj.readTime(loc, val)

绑定状态: 已绑定

Python 调用: obj.readTime(loc, val)

This function reads an oaTime value from the packed data at the specified location。 The location index is then incremented past the data that is read。 Byte-swapping is performed if the swap-flag is set。

Python 示例

from oapy._oa import _base

# assume obj is a oaPackedData
obj.readTime(loc, val)

obj.readString(loc, val)

绑定状态: 已绑定

Python 调用: obj.readString(loc, val)

This function reads a string from the packed data at the specified location。 The location index is then incremented past the data that is read。

Python 示例

from oapy._oa import _base

# assume obj is a oaPackedData
obj.readString(loc, val)

obj.readPoint(loc, val)

绑定状态: 已绑定

Python 调用: obj.readPoint(loc, val)

This function reads an oaPoint value from the packed data at the specified location。 The location index is then incremented past the data that is read。 Byte-swapping is performed if the swap-flag is set。

Python 示例

from oapy._oa import _base

# assume obj is a oaPackedData
obj.readPoint(loc, val)

obj.readBox(loc, val)

绑定状态: 已绑定

Python 调用: obj.readBox(loc, val)

This function reads an oaBox value from the packed data at the specified location。 The location index is then incremented past the data that is read。 Byte-swapping is performed if the swap-flag is set。

Python 示例

from oapy._oa import _base

# assume obj is a oaPackedData
obj.readBox(loc, val)

obj.readUnalignedUInt4(loc, val)

绑定状态: 已绑定

Python 调用: obj.readUnalignedUInt4(loc, val)

This function reads an unaligned UInt4 from the packed data at the specified location。 The location index is then incremented past the data that is read。 Byte-swapping is performed if the swap-flag is set。

Python 示例

from oapy._oa import _base

# assume obj is a oaPackedData
obj.readUnalignedUInt4(loc, val)

obj.readRef(loc, ref)

绑定状态: 已绑定

Python 调用: obj.readRef(loc, ref)

Python 示例

from oapy._oa import _base

# assume obj is a oaPackedData
obj.readRef(loc, ref)

obj.readRef(loc, ref)

绑定状态: 已绑定

Python 调用: obj.readRef(loc, ref)

Python 示例

from oapy._oa import _base

# assume obj is a oaPackedData
obj.readRef(loc, ref)

obj.readRef(loc, ref)

绑定状态: 已绑定

Python 调用: obj.readRef(loc, ref)

Python 示例

from oapy._oa import _base

# assume obj is a oaPackedData
obj.readRef(loc, ref)

obj.readRef(loc, ref)

绑定状态: 已绑定

Python 调用: obj.readRef(loc, ref)

Python 示例

from oapy._oa import _base

# assume obj is a oaPackedData
obj.readRef(loc, ref)

obj.readByteArray(loc, numObjects, val)

绑定状态: 已绑定

Python 调用: obj.readByteArray(loc, numObjects, val)

This function reads a byte array from the packed data at the specified location。 The location index is then incremented past the data that is read。 This operation is 4-byte aligned。

Python 示例

from oapy._oa import _base

# assume obj is a oaPackedData
obj.readByteArray(loc, numObjects, val)

obj.readInt2Array(loc, numObjects, val)

绑定状态: 已绑定

Python 调用: obj.readInt2Array(loc, numObjects, val)

This function reads an oaInt2 array from the packed data at the specified location。 The location index is then incremented past the data that is read。 Byte-swapping is performed if the swap-flag is set。 This operation is 4-byte aligned。

Python 示例

from oapy._oa import _base

# assume obj is a oaPackedData
obj.readInt2Array(loc, numObjects, val)

obj.readInt4Array(loc, numObjects, val)

绑定状态: 已绑定

Python 调用: obj.readInt4Array(loc, numObjects, val)

This function reads an oaInt4 array from the packed data at the specified location。 The location index is then incremented past the data that is read。 Byte-swapping is performed if the swap-flag is set。

Python 示例

from oapy._oa import _base

# assume obj is a oaPackedData
obj.readInt4Array(loc, numObjects, val)

obj.readInt8Array(loc, numObjects, val)

绑定状态: 已绑定

Python 调用: obj.readInt8Array(loc, numObjects, val)

This function reads an oaInt8 array from the packed data at the specified location。 The location index is then incremented past the data that is read。 Byte-swapping is performed if the swap-flag is set。

Python 示例

from oapy._oa import _base

# assume obj is a oaPackedData
obj.readInt8Array(loc, numObjects, val)

obj.readUInt2Array(loc, numObjects, val)

绑定状态: 已绑定

Python 调用: obj.readUInt2Array(loc, numObjects, val)

This function reads an oaUInt2 array from the packed data at the specified location。 The location index is then incremented past the data that is read。 Byte-swapping is performed if the swap-flag is set。 This operation is 4-byte aligned。

Python 示例

from oapy._oa import _base

# assume obj is a oaPackedData
obj.readUInt2Array(loc, numObjects, val)

obj.readUInt4Array(loc, numObjects, val)

绑定状态: 已绑定

Python 调用: obj.readUInt4Array(loc, numObjects, val)

This function reads an oaUInt4 array from the packed data at the specified location。 The location index is then incremented past the data that is read。 Byte-swapping is performed if the swap-flag is set。

Python 示例

from oapy._oa import _base

# assume obj is a oaPackedData
obj.readUInt4Array(loc, numObjects, val)

obj.readUInt8Array(loc, numObjects, val)

绑定状态: 已绑定

Python 调用: obj.readUInt8Array(loc, numObjects, val)

This function reads an oaInt8 array from the packed data at the specified location。 The location index is then incremented past the data that is read。 Byte-swapping is performed if the swap-flag is set。

Python 示例

from oapy._oa import _base

# assume obj is a oaPackedData
obj.readUInt8Array(loc, numObjects, val)

obj.readFloatArray(loc, numObjects, val)

绑定状态: 已绑定

Python 调用: obj.readFloatArray(loc, numObjects, val)

This function reads an oaFloat array from the packed data at the specified location。 The location index is then incremented past the data that is read。 Byte-swapping is performed if the swap-flag is set。

Python 示例

from oapy._oa import _base

# assume obj is a oaPackedData
obj.readFloatArray(loc, numObjects, val)

obj.readDoubleArray(loc, numObjects, val)

绑定状态: 已绑定

Python 调用: obj.readDoubleArray(loc, numObjects, val)

This function reads an oaDouble array from the packed data at the specified location。 The location index is then incremented past the data that is read。 Byte-swapping is performed if the swap-flag is set。

Python 示例

from oapy._oa import _base

# assume obj is a oaPackedData
obj.readDoubleArray(loc, numObjects, val)

obj.readPointArray(loc, numObjects, val)

绑定状态: 已绑定

Python 调用: obj.readPointArray(loc, numObjects, val)

This function reads an oaPoint array from the packed data at the specified location。 The location index is then incremented past the data that is read。 Byte-swapping is performed if the swap-flag is set。

Python 示例

from oapy._oa import _base

# assume obj is a oaPackedData
obj.readPointArray(loc, numObjects, val)

obj.readBoxArray(loc, numObjects, val)

绑定状态: 已绑定

Python 调用: obj.readBoxArray(loc, numObjects, val)

This function reads an oaBox array from the packed data at the specified location。 The location index is then incremented past the data that is read。 Byte-swapping is performed if the swap-flag is set。

Python 示例

from oapy._oa import _base

# assume obj is a oaPackedData
obj.readBoxArray(loc, numObjects, val)

obj.writePackedInt4(loc, val)

绑定状态: 已绑定

Python 调用: obj.writePackedInt4(loc, val)

This function packs and writes an oaInt4 value at the specified location。 The location index is then incremented past the data that is written。

Python 示例

from oapy._oa import _base

# assume obj is a oaPackedData
obj.writePackedInt4(loc, val)

obj.writePackedInt8(loc, val)

绑定状态: 已绑定

Python 调用: obj.writePackedInt8(loc, val)

This function packs and writes an oaInt8 value at the specified location。 The location index is then incremented past the data that is written。

Python 示例

from oapy._oa import _base

# assume obj is a oaPackedData
obj.writePackedInt8(loc, val)

obj.writePackedUInt4(loc, val)

绑定状态: 已绑定

Python 调用: obj.writePackedUInt4(loc, val)

This function packs and writes an oaUInt4 value at the specified location。 The location index is then incremented past the data that is written。

Python 示例

from oapy._oa import _base

# assume obj is a oaPackedData
obj.writePackedUInt4(loc, val)

obj.writePackedUInt8(loc, val)

绑定状态: 已绑定

Python 调用: obj.writePackedUInt8(loc, val)

This function packs and writes an oaUInt8 value at the specified location。 The location index is then incremented past the data that is written。

Python 示例

from oapy._oa import _base

# assume obj is a oaPackedData
obj.writePackedUInt8(loc, val)

obj.writePackedFloat(loc, val)

绑定状态: 已绑定

Python 调用: obj.writePackedFloat(loc, val)

This function packs and writes an oaFloat value at the specified location。 The location index is then incremented past the data that is written。

Python 示例

from oapy._oa import _base

# assume obj is a oaPackedData
obj.writePackedFloat(loc, val)

obj.writePackedDouble(loc, val)

绑定状态: 已绑定

Python 调用: obj.writePackedDouble(loc, val)

This function packs and writes an oaDouble value at the specified location。 The location index is then incremented past the data that is written。

Python 示例

from oapy._oa import _base

# assume obj is a oaPackedData
obj.writePackedDouble(loc, val)

obj.writePackedTime(loc, val)

绑定状态: 已绑定

Python 调用: obj.writePackedTime(loc, val)

This function packs and writes an oaTime value at the specified location。 The location index is then incremented past the data that is written。

Python 示例

from oapy._oa import _base

# assume obj is a oaPackedData
obj.writePackedTime(loc, val)

obj.writePackedPoint(loc, point)

绑定状态: 已绑定

Python 调用: obj.writePackedPoint(loc, point)

This function packs and writes an oaPoint value at the specified location。 The location index is then incremented past the data that is written。

Python 示例

from oapy._oa import _base

# assume obj is a oaPackedData
obj.writePackedPoint(loc, point)

obj.writePackedBox(loc, box)

绑定状态: 已绑定

Python 调用: obj.writePackedBox(loc, box)

This function packs and writes an oaBox value at the specified location。 The location index is then incremented past the data that is written。

Python 示例

from oapy._oa import _base

# assume obj is a oaPackedData
obj.writePackedBox(loc, box)

obj.writePackedPointArray(loc, points, isOrtho, isVFst)

绑定状态: 已绑定

Python 调用: obj.writePackedPointArray(loc, points, isOrtho, isVFst)

This function packs and writes an oaPointArray at the specified location。 The location index is then incremented past the data that is written。

Python 示例

from oapy._oa import _base

# assume obj is a oaPackedData
obj.writePackedPointArray(loc, points, isOrtho, isVFst)

obj.writePackedRef(loc, ref)

绑定状态: 已绑定

Python 调用: obj.writePackedRef(loc, ref)

Python 示例

from oapy._oa import _base

# assume obj is a oaPackedData
obj.writePackedRef(loc, ref)

obj.writePackedRef(loc, ref)

绑定状态: 已绑定

Python 调用: obj.writePackedRef(loc, ref)

Python 示例

from oapy._oa import _base

# assume obj is a oaPackedData
obj.writePackedRef(loc, ref)

obj.writePackedRef(loc, ref)

绑定状态: 已绑定

Python 调用: obj.writePackedRef(loc, ref)

Python 示例

from oapy._oa import _base

# assume obj is a oaPackedData
obj.writePackedRef(loc, ref)

obj.writePackedRef(loc, ref)

绑定状态: 已绑定

Python 调用: obj.writePackedRef(loc, ref)

Python 示例

from oapy._oa import _base

# assume obj is a oaPackedData
obj.writePackedRef(loc, ref)

obj.readPackedInt4(loc, val)

绑定状态: 已绑定

Python 调用: obj.readPackedInt4(loc, val)

This function unpacks and reads out an oaInt4 value at the specified location。 The location index is then incremented past the data that is written。

异常

  • oacCorruptedDatabase

Python 示例

from oapy._oa import _base

# assume obj is a oaPackedData
obj.readPackedInt4(loc, val)

obj.readPackedInt8(loc, val)

绑定状态: 已绑定

Python 调用: obj.readPackedInt8(loc, val)

This function unpacks and reads out an oaInt8 value at the specified location。 The location index is then incremented past the data that is written。

异常

  • oacCorruptedDatabase

Python 示例

from oapy._oa import _base

# assume obj is a oaPackedData
obj.readPackedInt8(loc, val)

obj.readPackedUInt4(loc, val)

绑定状态: 已绑定

Python 调用: obj.readPackedUInt4(loc, val)

This function unpacks and reads out an oaUInt4 value at the specified location。 The location index is then incremented past the data that is written。

异常

  • oacCorruptedDatabase

Python 示例

from oapy._oa import _base

# assume obj is a oaPackedData
obj.readPackedUInt4(loc, val)

obj.readPackedUInt8(loc, val)

绑定状态: 已绑定

Python 调用: obj.readPackedUInt8(loc, val)

This function unpacks and reads out an oaUInt8 value at the specified location。 The location index is then incremented past the data that is written。

异常

  • oacCorruptedDatabase

Python 示例

from oapy._oa import _base

# assume obj is a oaPackedData
obj.readPackedUInt8(loc, val)

obj.readPackedFloat(loc, val)

绑定状态: 已绑定

Python 调用: obj.readPackedFloat(loc, val)

This function unpacks and reads out an oaFloat value at the specified location。 The location index is then incremented past the data that is written。

Python 示例

from oapy._oa import _base

# assume obj is a oaPackedData
obj.readPackedFloat(loc, val)

obj.readPackedDouble(loc, val)

绑定状态: 已绑定

Python 调用: obj.readPackedDouble(loc, val)

This function unpacks and reads out an oaDouble value at the specified location。 The location index is then incremented past the data that is written。

Python 示例

from oapy._oa import _base

# assume obj is a oaPackedData
obj.readPackedDouble(loc, val)

obj.readPackedTime(loc, val)

绑定状态: 已绑定

Python 调用: obj.readPackedTime(loc, val)

This function unpacks and reads out an oaTime value at the specified location。 The location index is then incremented past the data that is written。

异常

  • oacCorruptedDatabase

Python 示例

from oapy._oa import _base

# assume obj is a oaPackedData
obj.readPackedTime(loc, val)

obj.readPackedPoint(loc, point)

绑定状态: 已绑定

Python 调用: obj.readPackedPoint(loc, point)

This function unpacks and reads out an oaPoint value at the specified location。 The location index is then incremented past the data that is written。

异常

  • oacCorruptedDatabase

Python 示例

from oapy._oa import _base

# assume obj is a oaPackedData
obj.readPackedPoint(loc, point)

obj.readPackedBox(loc, box)

绑定状态: 已绑定

Python 调用: obj.readPackedBox(loc, box)

This function unpacks and reads out an oaBox value at the specified location。 The location index is then incremented past the data that is written。

异常

  • oacCorruptedDatabase

Python 示例

from oapy._oa import _base

# assume obj is a oaPackedData
obj.readPackedBox(loc, box)

obj.readPackedPointArray(loc, points, numPoints, isOrthogonal, isVertFirst)

绑定状态: 已绑定

Python 调用: obj.readPackedPointArray(loc, points, numPoints, isOrthogonal, isVertFirst)

This function unpacks and reads out an oaPointArray at the specified location。 The location index is then incremented past the data that is written。

异常

  • oacCorruptedDatabase

Python 示例

from oapy._oa import _base

# assume obj is a oaPackedData
obj.readPackedPointArray(loc, points, numPoints, isOrthogonal, isVertFirst)

obj.readPackedRef(loc, ref)

绑定状态: 已绑定

Python 调用: obj.readPackedRef(loc, ref)

Python 示例

from oapy._oa import _base

# assume obj is a oaPackedData
obj.readPackedRef(loc, ref)

obj.readPackedRef(loc, ref)

绑定状态: 已绑定

Python 调用: obj.readPackedRef(loc, ref)

Python 示例

from oapy._oa import _base

# assume obj is a oaPackedData
obj.readPackedRef(loc, ref)

obj.readPackedRef(loc, ref)

绑定状态: 已绑定

Python 调用: obj.readPackedRef(loc, ref)

Python 示例

from oapy._oa import _base

# assume obj is a oaPackedData
obj.readPackedRef(loc, ref)

obj.readPackedRef(loc, ref)

绑定状态: 已绑定

Python 调用: obj.readPackedRef(loc, ref)

Python 示例

from oapy._oa import _base

# assume obj is a oaPackedData
obj.readPackedRef(loc, ref)

obj.getPackedInt4Size(loc)

绑定状态: 已绑定

Python 调用: obj.getPackedInt4Size(loc)

This function returns the number of bytes used to store a packed 4-byte integer object at the specified location。 It is assumed that this location actually contains the indicated object type。

Python 示例

from oapy._oa import _base

# assume obj is a oaPackedData
obj.getPackedInt4Size(loc)

obj.getPackedInt8Size(loc)

绑定状态: 已绑定

Python 调用: obj.getPackedInt8Size(loc)

This function returns the number of bytes used to store a packed 8-byte integer object at the specified location。 It is assumed that this location actually contains the indicated object type。

Python 示例

from oapy._oa import _base

# assume obj is a oaPackedData
obj.getPackedInt8Size(loc)

obj.getPackedFloatSize(loc)

绑定状态: 已绑定

Python 调用: obj.getPackedFloatSize(loc)

This function returns the number of bytes used to store a packed oaFloat object at the specified location。 It is assumed that this location actually contains the indicated object type。

Python 示例

from oapy._oa import _base

# assume obj is a oaPackedData
obj.getPackedFloatSize(loc)

obj.getPackedDoubleSize(loc)

绑定状态: 已绑定

Python 调用: obj.getPackedDoubleSize(loc)

This function returns the number of bytes used to store a packed oaDouble object at the specified location。 It is assumed that this location actually contains the indicated object type。

Python 示例

from oapy._oa import _base

# assume obj is a oaPackedData
obj.getPackedDoubleSize(loc)

obj.getPackedTimeSize(loc)

绑定状态: 已绑定

Python 调用: obj.getPackedTimeSize(loc)

This function returns the number of bytes used to store a packed oaTime object at the specified location。 It is assumed that this location actually contains the indicated object type。

Python 示例

from oapy._oa import _base

# assume obj is a oaPackedData
obj.getPackedTimeSize(loc)

obj.getPackedPointSize(loc)

绑定状态: 已绑定

Python 调用: obj.getPackedPointSize(loc)

This function returns the number of bytes used to store a packed oaPoint object at the specified location。 It is assumed that this location actually contains the indicated object type。

Python 示例

from oapy._oa import _base

# assume obj is a oaPackedData
obj.getPackedPointSize(loc)

obj.getPackedBoxSize(loc)

绑定状态: 已绑定

Python 调用: obj.getPackedBoxSize(loc)

This function returns the number of bytes used to store a packed oaBox object at the specified location。 It is assumed that this location actually contains the indicated object type。

Python 示例

from oapy._oa import _base

# assume obj is a oaPackedData
obj.getPackedBoxSize(loc)

obj.getPackedPointArraySize(loc, numPoints, isOrtho)

绑定状态: 已绑定

Python 调用: obj.getPackedPointArraySize(loc, numPoints, isOrtho)

This function returns the number of bytes used to store a packed oaPoint array object at the specified location。 It is assumed that this location actually contains the indicated object type。

Python 示例

from oapy._oa import _base

# assume obj is a oaPackedData
obj.getPackedPointArraySize(loc, numPoints, isOrtho)