asfernandes / node-firebird-drivers

Node.js Firebird Drivers
MIT License
53 stars 17 forks source link

Add method BlobStream.seek #131

Closed asfernandes closed 1 year ago

asfernandes commented 1 year ago
export const enum BlobSeekWhence {
    START = 0,
    CURRENT = 1,
    END = 2
}

/** BlobStream class. */
export abstract class BlobStream {
    /** Seeks into the blob stream and return the new position. */
    abstract seek(offset: number, whence?: BlobSeekWhence): Promise<number>;
}