Results of 1 - 10 of about 27 for itemsize (0.009 sec.)
- バッファプロトコル (buffer Protocol) — Python 3.14.8 ドキュメント 13281
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 抽象オブジェクトレイヤ (Abstract Objects Layer) » バッファプロトコル (buffer Protocol) テーマ 自動 ライト ダーク | バッファプロト
...ィールドは NULL です。一般的に、エクスポートオブジェクトはこの方式を使用してはなりません。 Py_ssize_t len ¶ product(shape) * itemsize 。contiguous配列では、下層のメモリブロックの長さになります。非contiguous 配列では、contiguous表現にコピーされた場合に論理構...。 int readonly ¶ バッファが読み出し専用であるか示します。このフィールドは PyBUF_WRITABLE フラグで制御できます。 Py_ssize_t itemsize ¶ 要素一つ分のbyte単位のサイズ。 struct.calcsize() を非 NULL の format 値に対して呼び出した結果と同じです。 重要な例外: 消...費者が PyBUF_FORMAT フラグを設定することなくバッファを要求した場合、 format は NULL に設定されます。 しかし itemsize は元のフォーマットに従った値を保持します。 shape が存在する場合、 product(shape) * itemsize == len の等式が守られ、利用者は... - https://man.mtool.work/python/3.14/c-api/buffer.html
- バッファプロトコル (buffer Protocol) — Python 3.14.8 ドキュメント 13281
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 抽象オブジェクトレイヤ (Abstract Objects Layer) » バッファプロトコル (buffer Protocol) テーマ 自動 ライト ダーク | バッファプロト
...ィールドは NULL です。一般的に、エクスポートオブジェクトはこの方式を使用してはなりません。 Py_ssize_t len ¶ product(shape) * itemsize 。contiguous配列では、下層のメモリブロックの長さになります。非contiguous 配列では、contiguous表現にコピーされた場合に論理構...。 int readonly ¶ バッファが読み出し専用であるか示します。このフィールドは PyBUF_WRITABLE フラグで制御できます。 Py_ssize_t itemsize ¶ 要素一つ分のbyte単位のサイズ。 struct.calcsize() を非 NULL の format 値に対して呼び出した結果と同じです。 重要な例外: 消...費者が PyBUF_FORMAT フラグを設定することなくバッファを要求した場合、 format は NULL に設定されます。 しかし itemsize は元のフォーマットに従った値を保持します。 shape が存在する場合、 product(shape) * itemsize == len の等式が守られ、利用者は... - https://man.mtool.work/python/3.14/c-api/buffer.html
- Type Object Structures — Python 3.14.8 ドキュメント 9512
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » オブジェクト実装サポート (object implementation support) » Type Object Structures テーマ 自動 ライト ダーク | Type Object Structu
...ト [ 1 ] 型 特殊メソッド/特殊属性 Info [ 2 ] O T D I <R> tp_name const char * __name__ X X tp_basicsize Py_ssize_t X X X tp_itemsize Py_ssize_t X X tp_dealloc destructor X X X tp_vectorcall_offset Py_ssize_t X X ( tp_getattr ) getattrfunc __getattribute__...ct { PyObject_VAR_HEAD const char * tp_name ; /* For printing, in format "<module>.<name>" */ Py_ssize_t tp_basicsize , tp_itemsize ; /* For allocation */ /* Methods to implement standard operations */ destructor tp_dealloc ; Py_ssize_t tp_vectorcall_off...types (created by type_new() , usually called from a class statement). Note that PyType_Type (the metatype) initializes tp_itemsize , which means that its instances (i.e. type objects) must have the ob_size field. PyObject.ob_refcnt The type object's ref... - https://man.mtool.work/python/3.14/c-api/typeobj.html
- Type Object Structures — Python 3.14.8 ドキュメント 9512
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » オブジェクト実装サポート (object implementation support) » Type Object Structures テーマ 自動 ライト ダーク | Type Object Structu
...ト [ 1 ] 型 特殊メソッド/特殊属性 Info [ 2 ] O T D I <R> tp_name const char * __name__ X X tp_basicsize Py_ssize_t X X X tp_itemsize Py_ssize_t X X tp_dealloc destructor X X X tp_vectorcall_offset Py_ssize_t X X ( tp_getattr ) getattrfunc __getattribute__...ct { PyObject_VAR_HEAD const char * tp_name ; /* For printing, in format "<module>.<name>" */ Py_ssize_t tp_basicsize , tp_itemsize ; /* For allocation */ /* Methods to implement standard operations */ destructor tp_dealloc ; Py_ssize_t tp_vectorcall_off...types (created by type_new() , usually called from a class statement). Note that PyType_Type (the metatype) initializes tp_itemsize , which means that its instances (i.e. type objects) must have the ob_size field. PyObject.ob_refcnt The type object's ref... - https://man.mtool.work/python/3.14/c-api/typeobj.html
- 型オブジェクト — Python 3.14.8 ドキュメント 9068
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 具象オブジェクト (concrete object) レイヤ » 型オブジェクト テーマ 自動 ライト ダーク | 型オブジェクト ¶ type PyTypeObject ¶ 次に属
...to meet tp_basicsize 's alignment requirements. バージョン 3.12 で変更: Previously, this field could not be negative. int itemsize ¶ Size of one element of a variable-size type, in bytes. Used to set PyTypeObject.tp_itemsize . See tp_itemsize documentat...ion for caveats. If zero, tp_itemsize is inherited. Extending arbitrary variable-sized classes is dangerous, since some types use a fixed offset for variable-si...zed memory, which can then overlap fixed-sized memory used by a subclass. To help prevent mistakes, inheriting itemsize is only possible in the following situations: The base is not variable-sized (its tp_itemsize is zero). The requested PyTy... - https://man.mtool.work/python/3.14/c-api/type.html
- 型オブジェクト — Python 3.14.8 ドキュメント 9068
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 具象オブジェクト (concrete object) レイヤ » 型オブジェクト テーマ 自動 ライト ダーク | 型オブジェクト ¶ type PyTypeObject ¶ 次に属
...to meet tp_basicsize 's alignment requirements. バージョン 3.12 で変更: Previously, this field could not be negative. int itemsize ¶ Size of one element of a variable-size type, in bytes. Used to set PyTypeObject.tp_itemsize . See tp_itemsize documentat...ion for caveats. If zero, tp_itemsize is inherited. Extending arbitrary variable-sized classes is dangerous, since some types use a fixed offset for variable-si...zed memory, which can then overlap fixed-sized memory used by a subclass. To help prevent mistakes, inheriting itemsize is only possible in the following situations: The base is not variable-sized (its tp_itemsize is zero). The requested PyTy... - https://man.mtool.work/python/3.14/c-api/type.html
- 2. 拡張の型の定義: チュートリアル — Python 3.14.8 ドキュメント 8953
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python インタプリタの拡張と埋め込み » 2. 拡張の型の定義: チュートリアル テーマ 自動 ライト ダーク | 2. 拡張の型の定義: チュートリアル ¶ Python では、組み込みの s
...) . tp_name = "custom.Custom" , . tp_doc = PyDoc_STR ( "Custom objects" ), . tp_basicsize = sizeof ( CustomObject ), . tp_itemsize = 0 , . tp_flags = Py_TPFLAGS_DEFAULT , . tp_new = PyType_GenericNew , }; static int custom_module_exec ( PyObject * m ) {...) . tp_name = "custom.Custom" , . tp_doc = PyDoc_STR ( "Custom objects" ), . tp_basicsize = sizeof ( CustomObject ), . tp_itemsize = 0 , . tp_flags = Py_TPFLAGS_DEFAULT , . tp_new = PyType_GenericNew , }; 注釈 上にあるように C99 スタイルの指示付き初期化...pydoc モジュールや pickle モジュールと互換性を持たせるために重要なのです。 . tp_basicsize = sizeof ( CustomObject ), . tp_itemsize = 0 , これは、新しい Custom インスタンスを作るときに Python が割り当てるべきメモリがどのくらいなのかを知るためのものです。... - https://man.mtool.work/python/3.14/extending/newtypes_tutorial.html
- 2. 拡張の型の定義: チュートリアル — Python 3.14.8 ドキュメント 8722
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python インタプリタの拡張と埋め込み » 2. 拡張の型の定義: チュートリアル テーマ 自動 ライト ダーク | 2. 拡張の型の定義: チュートリアル ¶ Python では、組み込みの s
...) . tp_name = "custom.Custom" , . tp_doc = PyDoc_STR ( "Custom objects" ), . tp_basicsize = sizeof ( CustomObject ), . tp_itemsize = 0 , . tp_flags = Py_TPFLAGS_DEFAULT , . tp_new = PyType_GenericNew , }; static int custom_module_exec ( PyObject * m ) {...) . tp_name = "custom.Custom" , . tp_doc = PyDoc_STR ( "Custom objects" ), . tp_basicsize = sizeof ( CustomObject ), . tp_itemsize = 0 , . tp_flags = Py_TPFLAGS_DEFAULT , . tp_new = PyType_GenericNew , }; 注釈 上にあるように C99 スタイルの指示付き初期化...pydoc モジュールや pickle モジュールと互換性を持たせるために重要なのです。 . tp_basicsize = sizeof ( CustomObject ), . tp_itemsize = 0 , これは、新しい Custom インスタンスを作るときに Python が割り当てるべきメモリがどのくらいなのかを知るためのものです。... - https://man.mtool.work/python/3.14/extending/newtypes_tutorial.html
- array --- 効率的な数値配列 — Python 3.14.8 ドキュメント 8393
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » データ型 » array --- 効率的な数値配列 テーマ 自動 ライト ダーク | array --- 効率的な数値配列 ¶ This module defines an object type w
...ent -- type codes. 値の実際の表現はマシンアーキテクチャ (厳密に言うとCの実装) によって決まります。値の実際のサイズは array.itemsize 属性から得られます。 このモジュールは以下の項目を定義しています: array. typecodes ¶ A string with all available type codes...ypecode , initializer 付きで 監査イベント array.__new__ を送出します。 typecode ¶ アレイを作るときに使う型コード文字です。 itemsize ¶ アレイの要素 1 つの内部表現に使われるバイト長です。 append ( value , / ) ¶ Append a new item with the specified value to...要素数の入ったタプル (address, length) を返します。バイト単位で表したメモリバッファの大きさは array.buffer_info()[1] * array.itemsize で計算できます。例えば ioctl() 操作のような、メモリアドレスを必要とする低レベルな (そして、本質的に危険な) I/Oインターフェ... - https://man.mtool.work/python/3.14/library/array.html
- array --- 効率的な数値配列 — Python 3.14.8 ドキュメント 8393
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » データ型 » array --- 効率的な数値配列 テーマ 自動 ライト ダーク | array --- 効率的な数値配列 ¶ This module defines an object type w
...ent -- type codes. 値の実際の表現はマシンアーキテクチャ (厳密に言うとCの実装) によって決まります。値の実際のサイズは array.itemsize 属性から得られます。 このモジュールは以下の項目を定義しています: array. typecodes ¶ A string with all available type codes...ypecode , initializer 付きで 監査イベント array.__new__ を送出します。 typecode ¶ アレイを作るときに使う型コード文字です。 itemsize ¶ アレイの要素 1 つの内部表現に使われるバイト長です。 append ( value , / ) ¶ Append a new item with the specified value to...要素数の入ったタプル (address, length) を返します。バイト単位で表したメモリバッファの大きさは array.buffer_info()[1] * array.itemsize で計算できます。例えば ioctl() 操作のような、メモリアドレスを必要とする低レベルな (そして、本質的に危険な) I/Oインターフェ... - https://man.mtool.work/python/3.14/library/array.html