hammerspoon2-docs
    Preparing search index...

    Function writeBytes

    • Write raw bytes for a specific UTI type, replacing all current contents.

      This is the binary counterpart to writeData(), accepting a Uint8Array, any other typed array, or an ArrayBuffer.

      Parameters

      • bytes: ArrayBuffer | Uint8Array<ArrayBufferLike>

        The raw bytes to write

      • uti: string

        A UTI type string (e.g. "public.png", "com.adobe.pdf")

      Returns boolean

      true if the write succeeded