import ByteArray from "./utils/ByteArray"; declare namespace openfl { /** * Adobe Flash Player supports an accelerated method of reading and * writing to the `ByteArray` object, known as "domain memory" * * The Memory API provides access to domain memory using `Memory.select` * on an existing `ByteArray` on the Flash target, and falls back to * standard access on other targets. * */ export class Memory { /** * Get a byte from the specified memory address * @param position An existing address in the selected `ByteArray` memory * @return An 8-bit integer value * */ static getByte(position: number): number; /** * Get a double from the specified memory address * @param position An existing address in the selected `ByteArray` memory * @return A 64-bit floating point value * */ static getDouble(position: number): number; /** * Get a float from the specified memory address * @param position An existing address in the selected `ByteArray` memory * @return A 32-bit floating-point value * */ static getFloat(position: number): number; /** * Get an int from the specified memory address * @param position An existing address in the selected `ByteArray` memory * @return A 32-bit integer value * */ static getI32(position: number): number; /** * Return an unsigned int from the specified memory address * @param position An existing address in the selected `ByteArray` memory * @return An unsigned 16-bit integer value * */ static getUI16(position: number): number; /** * Selects the `ByteArray` to use for subsequent domain memory access * @param byteArray A `ByteArray` object to use for memory * */ static select(byteArray: ByteArray): void; /** * Set a byte at the specified memory address * @param position An existing address in the selected `ByteArray` memory * @param v An 8-bit byte value * */ static setByte(position: number, v: number): void; /** * Set a double at the specified memory address * @param position An existing address in the selected `ByteArray` memory * @param v A 64-bit floating-point value * */ static setDouble(position: number, v: number): void; /** * Set a float at the specified memory address * @param position An existing address in the selected `ByteArray` memory * @param v A 32-bit floating-point value * */ static setFloat(position: number, v: number): void; /** * Set an int at the specified memory address * @param position An existing address in the selected `ByteArray` memory * @param v A 16-bit integer value * */ static setI16(position: number, v: number): void; /** * Set a long int at the specified memory address * @param position An existing address in the selected `ByteArray` memory * @param v A 32-bit integer value * */ static setI32(position: number, v: number): void; } } export default openfl.Memory;