window.kaolin
    Preparing search index...

    Function fromBinary

    • Deserialize a value from binary format, such as that written by toBinary, or its sister python implementation in kaolin.visualize.web. All arrays of numbers will be decoded to TypedArray, and only mixed type arrays will be decoded to javascript Array. All TypedArray instances will have an extra shape member. All dictionaries will be decoded to Map. PNG / JPEG image payloads come back as plain Blob instances with the corresponding image/png / image/jpeg mime type set, so callers can pipe them through createImageBitmap, URL.createObjectURL, etc. This call stays synchronous even when the payload is a compressed image.

      Parameters

      • binaryData: ArrayBuffer

        Binary data to deserialize

      Returns any

      Deserialized value