mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-18 13:51:27 +08:00

Less than 30 erros left, let's hope it still works Added lib.*.d.ts from typescript, removed lib and dom stuff, added by hand XHR, alert etc. .d.ts-es for polyfills Roll back some changes involved in separating UIEvent for dom and ios Test combined dts-es will now use lib, while internally we will not to avoid UIEvent conflict with dom stuff
58 lines
1.8 KiB
TypeScript
58 lines
1.8 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, dst_size: number, src_buffer: string, 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, dst_size: number, src_buffer: string, 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;
|