sfml.js
    Preparing search index...

    Class MemoryInputStream

    Retains the supplied bytes without copying them.

    Hierarchy (View Summary)

    Index

    Constructors

    Methods

    Constructors

    Methods

    • 保留 data 的引用并将读取位置重置为零,不复制字节。

      Parameters

      • data: Uint8Array

      Returns void

    • 读取到 destination 并推进位置,返回字节数;流末尾返回 0n,未打开返回 undefined。

      Parameters

      • destination: Uint8Array

      Returns undefined | bigint

    • 设置非负字节位置,超出长度时停在流末尾;返回实际位置,未打开返回 undefined。

      Parameters

      • position: bigint

      Returns undefined | bigint