@contentauth/c2pa-node
    Preparing search index...

    Interface ReaderInterface

    interface ReaderInterface {
        getHandle(): unknown;
        isEmbedded(): boolean;
        json(): ManifestStore;
        remoteUrl(): string;
        resourceToAsset(
            uri: string,
            output: DestinationAsset,
        ): Promise<ResourceAsset>;
    }

    Implemented by

    Index

    Methods

    • Get the internal handle for use with Neon bindings

      Returns unknown

    • Returns true if the the reader was created from an embedded manifest

      Returns boolean

    • Get the JSON representation of the manifest

      Returns ManifestStore

    • Get the remote url of the manifest if this reader obtained the manifest remotely

      Returns string

    • Write a resource to a buffer or file

      Parameters

      • uri: string

        The URI of the resource

      • output: DestinationAsset

        The destination asset (file or buffer)

      Returns Promise<ResourceAsset>

      When output is a file, returns the number of bytes written. When output is a buffer, returns an object with the buffer and bytes written.