Files
Martin Bektchiev 18a9b1aea8 fix(d.ts): Update iOS typings iOS 13.2 (#8430)
* chore: Update typings using iOS SDK 13.2 (Xcode 11.3.1)

* chore: Update iOS typings using the latest runtime
This fixes arguments of global functions.
See https://github.com/NativeScript/ios-runtime/pull/1250

* chore: Strip MDC types attached to other modules
  * Delete via regex from generation script
  * Apply regex to current typings
2020-03-13 10:37:30 +02:00

58 lines
2.0 KiB
TypeScript

declare const enum compression_algorithm {
COMPRESSION_LZ4 = 256,
COMPRESSION_ZLIB = 517,
COMPRESSION_LZMA = 774,
COMPRESSION_LZ4_RAW = 257,
COMPRESSION_LZFSE = 2049
}
declare function compression_decode_buffer(dst_buffer: string | interop.Pointer | interop.Reference<any>, dst_size: number, src_buffer: string | interop.Pointer | interop.Reference<any>, src_size: number, scratch_buffer: interop.Pointer | interop.Reference<any>, algorithm: compression_algorithm): number;
declare function compression_decode_scratch_buffer_size(algorithm: compression_algorithm): number;
declare function compression_encode_buffer(dst_buffer: string | interop.Pointer | interop.Reference<any>, dst_size: number, src_buffer: string | interop.Pointer | interop.Reference<any>, src_size: number, scratch_buffer: interop.Pointer | interop.Reference<any>, algorithm: compression_algorithm): number;
declare function compression_encode_scratch_buffer_size(algorithm: compression_algorithm): number;
declare const enum compression_status {
COMPRESSION_STATUS_OK = 0,
COMPRESSION_STATUS_ERROR = -1,
COMPRESSION_STATUS_END = 1
}
interface compression_stream {
dst_ptr: string;
dst_size: number;
src_ptr: string;
src_size: number;
state: interop.Pointer | interop.Reference<any>;
}
declare var compression_stream: interop.StructType<compression_stream>;
declare function compression_stream_destroy(stream: interop.Pointer | interop.Reference<compression_stream>): compression_status;
declare const enum compression_stream_flags {
COMPRESSION_STREAM_FINALIZE = 1
}
declare function compression_stream_init(stream: interop.Pointer | interop.Reference<compression_stream>, operation: compression_stream_operation, algorithm: compression_algorithm): compression_status;
declare const enum compression_stream_operation {
COMPRESSION_STREAM_ENCODE = 0,
COMPRESSION_STREAM_DECODE = 1
}
declare function compression_stream_process(stream: interop.Pointer | interop.Reference<compression_stream>, flags: number): compression_status;