import { i8, u8, i16, u16, i32, u32, ptr, f32, f64 } from '../../static/types'; /** * Pre: `destPtr` points to memory that is valid to write 1 byte to. * * Writes `i8` (1-byte signed integer) * to memory location pointed by `destPtr`. * * @param destPtr Pointer to memory location where to write `value` to. * @param value Value of type `i8` to store in memory. */ export declare function writeI8(destPtr: ptr, value: i8): void; /** * Pre: `destPtr` points to memory that is valid to write (1 * `jsArray.length`) bytes to. * * Writes array of `i8` (1-byte signed integer) * to memory location pointed by `destPtr`. * * @param destPtr Pointer to memory location where to write `jsArray` to. * @param jsArray Array of `i8` to store in memory. */ export declare function writeArrayI8(destPtr: ptr, jsArray: Int8Array | readonly i8[]): void; /** * Pre: `destPtr` points to memory that is valid to write 1 byte to. * * Writes `u8` (1-byte unsigned integer) * to memory location pointed by `destPtr`. * * @param destPtr Pointer to memory location where to write `value` to. * @param value Value of type `u8` to store in memory. */ export declare function writeU8(destPtr: ptr, value: u8): void; /** * Pre: `destPtr` points to memory that is valid to write (1 * `jsArray.length`) bytes to. * * Writes array of `u8` (1-byte unsigned integer) * to memory location pointed by `destPtr`. * * @param destPtr Pointer to memory location where to write `jsArray` to. * @param jsArray Array of `u8` to store in memory. */ export declare function writeArrayU8(destPtr: ptr, jsArray: Uint8Array | Uint8ClampedArray | readonly u8[]): void; /** * Pre: `destPtr` points to memory that is valid to write 2 bytes to. * * Writes `i16` (2-byte signed integer) * to memory location pointed by `destPtr`. * * @param destPtr Pointer to memory location where to write `value` to. * @param value Value of type `i16` to store in memory. */ export declare function writeI16(destPtr: ptr, value: i16): void; /** * Pre: `destPtr` points to memory that is valid to write (2 * `jsArray.length`) bytes to. * * Writes array of `i16` (2-byte signed integer) * to memory location pointed by `destPtr`. * * @param destPtr Pointer to memory location where to write `jsArray` to. * @param jsArray Array of `i16` to store in memory. */ export declare function writeArrayI16(destPtr: ptr, jsArray: Int16Array | readonly i16[]): void; /** * Pre: `destPtr` points to memory that is valid to write 2 bytes to. * * Writes `u16` (2-byte unsigned integer) * to memory location pointed by `destPtr`. * * @param destPtr Pointer to memory location where to write `value` to. * @param value Value of type `u16` to store in memory. */ export declare function writeU16(destPtr: ptr, value: u16): void; /** * Pre: `destPtr` points to memory that is valid to write (2 * `jsArray.length`) bytes to. * * Writes array of `u16` (2-byte unsigned integer) * to memory location pointed by `destPtr`. * * @param destPtr Pointer to memory location where to write `jsArray` to. * @param jsArray Array of `u16` to store in memory. */ export declare function writeArrayU16(destPtr: ptr, jsArray: Uint16Array | readonly u16[]): void; /** * Pre: `destPtr` points to memory that is valid to write 4 bytes to. * * Writes `i32` (4-byte signed integer) * to memory location pointed by `destPtr`. * * @param destPtr Pointer to memory location where to write `value` to. * @param value Value of type `i32` to store in memory. */ export declare function writeI32(destPtr: ptr, value: i32): void; /** * Pre: `destPtr` points to memory that is valid to write (4 * `jsArray.length`) bytes to. * * Writes array of `i32` (4-byte signed integer) * to memory location pointed by `destPtr`. * * @param destPtr Pointer to memory location where to write `jsArray` to. * @param jsArray Array of `i32` to store in memory. */ export declare function writeArrayI32(destPtr: ptr, jsArray: Int32Array | readonly i32[]): void; /** * Pre: `destPtr` points to memory that is valid to write 4 bytes to. * * Writes `u32` (4-byte unsigned integer) * to memory location pointed by `destPtr`. * * @param destPtr Pointer to memory location where to write `value` to. * @param value Value of type `u32` to store in memory. */ export declare function writeU32(destPtr: ptr, value: u32): void; /** * Pre: `destPtr` points to memory that is valid to write (4 * `jsArray.length`) bytes to. * * Writes array of `u32` (4-byte unsigned integer) * to memory location pointed by `destPtr`. * * @param destPtr Pointer to memory location where to write `jsArray` to. * @param jsArray Array of `u32` to store in memory. */ export declare function writeArrayU32(destPtr: ptr, jsArray: Uint32Array | readonly u32[]): void; /** * Pre: `destPtr` points to memory that is valid to write 4 bytes to. * * Writes `ptr` (4-byte pointer) * to memory location pointed by `destPtr`. * * @param destPtr Pointer to memory location where to write `value` to. * @param value Value of type `ptr` to store in memory. */ export declare function writePtr(destPtr: ptr, value: ptr): void; /** * Pre: `destPtr` points to memory that is valid to write (4 * `jsArray.length`) bytes to. * * Writes array of `ptr` (4-byte pointer) * to memory location pointed by `destPtr`. * * @param destPtr Pointer to memory location where to write `jsArray` to. * @param jsArray Array of `ptr` to store in memory. */ export declare function writeArrayPtr(destPtr: ptr, jsArray: Int32Array | readonly ptr[]): void; /** * Pre: `destPtr` points to memory that is valid to write 4 bytes to. * * Writes `f32` (4-byte single precision floating point number) * to memory location pointed by `destPtr`. * * @param destPtr Pointer to memory location where to write `value` to. * @param value Value of type `f32` to store in memory. */ export declare function writeF32(destPtr: ptr, value: f32): void; /** * Pre: `destPtr` points to memory that is valid to write (4 * `jsArray.length`) bytes to. * * Writes array of `f32` (4-byte single precision floating point number) * to memory location pointed by `destPtr`. * * @param destPtr Pointer to memory location where to write `jsArray` to. * @param jsArray Array of `f32` to store in memory. */ export declare function writeArrayF32(destPtr: ptr, jsArray: Float32Array | readonly f32[]): void; /** * Pre: `destPtr` points to memory that is valid to write 8 bytes to. * * Writes `f64` (8-byte double precision floating point number) * to memory location pointed by `destPtr`. * * @param destPtr Pointer to memory location where to write `value` to. * @param value Value of type `f64` to store in memory. */ export declare function writeF64(destPtr: ptr, value: f64): void; /** * Pre: `destPtr` points to memory that is valid to write (8 * `jsArray.length`) bytes to. * * Writes array of `f64` (8-byte double precision floating point number) * to memory location pointed by `destPtr`. * * @param destPtr Pointer to memory location where to write `jsArray` to. * @param jsArray Array of `f64` to store in memory. */ export declare function writeArrayF64(destPtr: ptr, jsArray: Float64Array | readonly f64[]): void; //# sourceMappingURL=write.d.ts.map