image-in-browser
Version:
Package for encoding / decoding images, transforming images, applying filters, drawing primitives on images on the client side (no need for server Node.js)
64 lines (63 loc) • 2.2 kB
TypeScript
/** @format */
import { InputBuffer } from '../../common/input-buffer.js';
import { OutputBuffer } from '../../common/output-buffer.js';
import { IfdValue } from './ifd-value.js';
import { IfdValueType } from '../ifd-value-type.js';
/**
* Class representing an undefined IFD value.
*/
export declare class IfdUndefinedValue extends IfdValue {
/**
* The value stored as a Uint8Array.
*/
private _value;
/**
* Gets the type of the IFD value.
* @returns {IfdValueType} The type of the IFD value.
*/
get type(): IfdValueType;
/**
* Gets the length of the value.
* @returns {number} The length of the value.
*/
get length(): number;
/**
* Creates an instance of IfdUndefinedValue.
* @param {Uint8Array | number} value - The value to initialize.
*/
constructor(value: Uint8Array | number);
/**
* Creates an IfdUndefinedValue from input buffer data.
* @param {InputBuffer<Uint8Array>} data - The input buffer containing the data.
* @param {number} [offset] - The offset to start reading from.
* @param {number} [length] - The length of data to read.
* @returns {IfdUndefinedValue} The created IfdUndefinedValue instance.
*/
static data(data: InputBuffer<Uint8Array>, offset?: number, length?: number): IfdUndefinedValue;
/**
* Converts the value to a Uint8Array.
* @returns {Uint8Array} The value as a Uint8Array.
*/
toData(): Uint8Array;
/**
* Writes the value to an output buffer.
* @param {OutputBuffer} out - The output buffer to write to.
*/
write(out: OutputBuffer): void;
/**
* Checks if this value is equal to another IFD value.
* @param {IfdValue} other - The other IFD value to compare with.
* @returns {boolean} True if the values are equal, false otherwise.
*/
equals(other: IfdValue): boolean;
/**
* Creates a clone of this IFD value.
* @returns {IfdValue} The cloned IFD value.
*/
clone(): IfdValue;
/**
* Returns a string representation of the IFD value.
* @returns {string} The string representation of the IFD value.
*/
toString(): string;
}