buffer.constants.MAX_LENGTH


版本历史
版本变更
v22.0.0

值更改为 253 - 1 在 64 位架构上。

v15.0.0

在 64 位架构上,值更改为 232

v14.0.0

值从 231 更改 - 1 到 232 - 1 在 64 位架构上。

v8.2.0

新增于: v8.2.0

  • 类型:<integer> 单个 Buffer 实例允许的最大大小。

    \Type: <integer> The largest size allowed for a single Buffer instance.

在 32 位架构上,该值当前为 230 - 1(约 1 GiB)。

\On 32-bit architectures, this value currently is 230 - 1 (about 1 GiB).

在 64 位架构上,此值当前为 253 - 1(约 8 PiB)。

\On 64-bit architectures, this value currently is 253 - 1 (about 8 PiB).

它反映了引擎盖下的 v8::TypedArray::kMaxLength

\It reflects v8::TypedArray::kMaxLength under the hood.

此值也可用作 buffer.kMaxLength

\This value is also available as buffer.kMaxLength.

AltStyle によって変換されたページ (->オリジナル) /