window.kaolin
    Preparing search index...

    Function valueFromBinary

    • Parses value from binary data, assuming specific layout:

      • 2 * 4 bytes for int32 meta (shape length and type code, see BinaryIoDataType)
      • N * 4 bytes for N-dimensional int32 shape
      • the rest for raw data

      Parameters

      • binaryData: ArrayBuffer

        Input binary data

      • offset: number = 0

        Byte offset in data

      Returns [
          string
          | number
          | any[]
          | ArrayBuffer
          | Blob
          | Map<string, any>,
          number[],
          number,
      ]

      [value, shape, readBytes]