@flywheel-io/fw-file-rs 0.5.1 → 0.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dcm/dcm.d.ts CHANGED
@@ -2,40 +2,40 @@
2
2
  /* eslint-disable */
3
3
 
4
4
  export class Context {
5
- free(): void;
6
- [Symbol.dispose](): void;
7
- deid_header(bytes: Uint8Array): Uint8Array;
8
- get_fw_meta(header: any): any;
9
- rename_file(filename: string, bytes: Uint8Array): any;
10
- deid_profile(yaml: string): Context;
11
- group_series(path_header_pairs: any): any;
12
- include_tags(tags: any): Context;
13
- parse_header(bytes: Uint8Array): any;
14
- stop_at_tags(tags: any): Context;
15
- group_by_tags(tags: any): Context;
16
- static is_dcm_filename(filename: string): boolean;
17
- split_localizer(flag: boolean): Context;
18
- get_deid_profile(): DeidProfile | undefined;
19
- read_until_pixels(file: File): Promise<Uint8Array>;
20
- matches_file_filter(filename: string): boolean;
21
- constructor();
22
- static default(): Context;
23
- mappings(mappings: any): Context;
24
- max_size(size: number): Context;
5
+ free(): void;
6
+ [Symbol.dispose](): void;
7
+ static default(): Context;
8
+ deid_header(bytes: Uint8Array): Uint8Array;
9
+ deid_profile(yaml: string): Context;
10
+ get_deid_profile(): DeidProfile | undefined;
11
+ get_fw_meta(header: any): any;
12
+ group_by_tags(tags: any): Context;
13
+ group_series(path_header_pairs: any): any;
14
+ include_tags(tags: any): Context;
15
+ static is_dcm_filename(filename: string): boolean;
16
+ mappings(mappings: any): Context;
17
+ matches_file_filter(filename: string): boolean;
18
+ max_size(size: number): Context;
19
+ constructor();
20
+ parse_header(bytes: Uint8Array): any;
21
+ read_until_pixels(file: File): Promise<Uint8Array>;
22
+ rename_file(filename: string, bytes: Uint8Array): any;
23
+ split_localizer(flag: boolean): Context;
24
+ stop_at_tags(tags: any): Context;
25
25
  }
26
26
 
27
27
  export class DeidProfile {
28
- private constructor();
29
- free(): void;
30
- [Symbol.dispose](): void;
31
- deid_dcm(dcm_bytes: Uint8Array): Uint8Array;
32
- static from_yaml(yaml: string): DeidProfile;
28
+ private constructor();
29
+ free(): void;
30
+ [Symbol.dispose](): void;
31
+ deid_dcm(dcm_bytes: Uint8Array): Uint8Array;
32
+ static from_yaml(yaml: string): DeidProfile;
33
33
  }
34
34
 
35
35
  export class WasmDCMGroup {
36
- private constructor();
37
- free(): void;
38
- [Symbol.dispose](): void;
36
+ private constructor();
37
+ free(): void;
38
+ [Symbol.dispose](): void;
39
39
  }
40
40
 
41
41
  export function create_dcm_as_bytes(tags_js: any): Uint8Array;
@@ -51,66 +51,66 @@ export function read_until_pixels(file: File, stop_tags: any, max_size?: number
51
51
  export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
52
52
 
53
53
  export interface InitOutput {
54
- readonly memory: WebAssembly.Memory;
55
- readonly __wbg_context_free: (a: number, b: number) => void;
56
- readonly context_default: () => number;
57
- readonly context_deid_header: (a: number, b: number, c: number) => [number, number, number, number];
58
- readonly context_deid_profile: (a: number, b: number, c: number) => [number, number, number];
59
- readonly context_get_deid_profile: (a: number) => number;
60
- readonly context_get_fw_meta: (a: number, b: any) => [number, number, number];
61
- readonly context_group_by_tags: (a: number, b: any) => [number, number, number];
62
- readonly context_group_series: (a: number, b: any) => [number, number, number];
63
- readonly context_include_tags: (a: number, b: any) => [number, number, number];
64
- readonly context_is_dcm_filename: (a: number, b: number) => number;
65
- readonly context_mappings: (a: number, b: any) => [number, number, number];
66
- readonly context_matches_file_filter: (a: number, b: number, c: number) => number;
67
- readonly context_max_size: (a: number, b: number) => number;
68
- readonly context_parse_header: (a: number, b: number, c: number) => [number, number, number];
69
- readonly context_read_until_pixels: (a: number, b: any) => any;
70
- readonly context_rename_file: (a: number, b: number, c: number, d: number, e: number) => [number, number, number];
71
- readonly context_split_localizer: (a: number, b: number) => number;
72
- readonly context_stop_at_tags: (a: number, b: any) => [number, number, number];
73
- readonly context_new: () => number;
74
- readonly get_fw_meta: (a: any, b: any) => [number, number, number];
75
- readonly parse_header: (a: number, b: number, c: number, d: number) => [number, number, number];
76
- readonly __wbg_deidprofile_free: (a: number, b: number) => void;
77
- readonly __wbg_wasmdcmgroup_free: (a: number, b: number) => void;
78
- readonly deidprofile_deid_dcm: (a: number, b: number, c: number) => [number, number, number, number];
79
- readonly deidprofile_from_yaml: (a: number, b: number) => [number, number, number];
80
- readonly group_series: (a: any, b: any, c: number) => any;
81
- readonly create_dcm_as_bytes: (a: any) => [number, number, number, number];
82
- readonly read_until_pixels: (a: any, b: any, c: number) => any;
83
- readonly wasm_bindgen__convert__closures_____invoke__ha451cb208bb0fc0b: (a: number, b: number, c: any) => void;
84
- readonly wasm_bindgen__closure__destroy__h3cb88661f709d80c: (a: number, b: number) => void;
85
- readonly wasm_bindgen__convert__closures_____invoke__h893b1d61029c883e: (a: number, b: number, c: any, d: any) => void;
86
- readonly __wbindgen_malloc: (a: number, b: number) => number;
87
- readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
88
- readonly __wbindgen_exn_store: (a: number) => void;
89
- readonly __externref_table_alloc: () => number;
90
- readonly __wbindgen_externrefs: WebAssembly.Table;
91
- readonly __externref_table_dealloc: (a: number) => void;
92
- readonly __wbindgen_free: (a: number, b: number, c: number) => void;
93
- readonly __wbindgen_start: () => void;
54
+ readonly memory: WebAssembly.Memory;
55
+ readonly __wbg_context_free: (a: number, b: number) => void;
56
+ readonly context_default: () => number;
57
+ readonly context_deid_header: (a: number, b: number, c: number) => [number, number, number, number];
58
+ readonly context_deid_profile: (a: number, b: number, c: number) => [number, number, number];
59
+ readonly context_get_deid_profile: (a: number) => number;
60
+ readonly context_get_fw_meta: (a: number, b: any) => [number, number, number];
61
+ readonly context_group_by_tags: (a: number, b: any) => [number, number, number];
62
+ readonly context_group_series: (a: number, b: any) => [number, number, number];
63
+ readonly context_include_tags: (a: number, b: any) => [number, number, number];
64
+ readonly context_is_dcm_filename: (a: number, b: number) => number;
65
+ readonly context_mappings: (a: number, b: any) => [number, number, number];
66
+ readonly context_matches_file_filter: (a: number, b: number, c: number) => number;
67
+ readonly context_max_size: (a: number, b: number) => number;
68
+ readonly context_parse_header: (a: number, b: number, c: number) => [number, number, number];
69
+ readonly context_read_until_pixels: (a: number, b: any) => any;
70
+ readonly context_rename_file: (a: number, b: number, c: number, d: number, e: number) => [number, number, number];
71
+ readonly context_split_localizer: (a: number, b: number) => number;
72
+ readonly context_stop_at_tags: (a: number, b: any) => [number, number, number];
73
+ readonly context_new: () => number;
74
+ readonly __wbg_deidprofile_free: (a: number, b: number) => void;
75
+ readonly __wbg_wasmdcmgroup_free: (a: number, b: number) => void;
76
+ readonly deidprofile_deid_dcm: (a: number, b: number, c: number) => [number, number, number, number];
77
+ readonly deidprofile_from_yaml: (a: number, b: number) => [number, number, number];
78
+ readonly group_series: (a: any, b: any, c: number) => any;
79
+ readonly create_dcm_as_bytes: (a: any) => [number, number, number, number];
80
+ readonly read_until_pixels: (a: any, b: any, c: number) => any;
81
+ readonly get_fw_meta: (a: any, b: any) => [number, number, number];
82
+ readonly parse_header: (a: number, b: number, c: number, d: number) => [number, number, number];
83
+ readonly wasm_bindgen__closure__destroy__h64562fef2c995210: (a: number, b: number) => void;
84
+ readonly wasm_bindgen__convert__closures_____invoke__h991ba238ec007722: (a: number, b: number, c: any, d: any) => void;
85
+ readonly wasm_bindgen__convert__closures_____invoke__h4c0595ddb9526f74: (a: number, b: number, c: any) => void;
86
+ readonly __wbindgen_malloc: (a: number, b: number) => number;
87
+ readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
88
+ readonly __wbindgen_exn_store: (a: number) => void;
89
+ readonly __externref_table_alloc: () => number;
90
+ readonly __wbindgen_externrefs: WebAssembly.Table;
91
+ readonly __externref_table_dealloc: (a: number) => void;
92
+ readonly __wbindgen_free: (a: number, b: number, c: number) => void;
93
+ readonly __wbindgen_start: () => void;
94
94
  }
95
95
 
96
96
  export type SyncInitInput = BufferSource | WebAssembly.Module;
97
97
 
98
98
  /**
99
- * Instantiates the given `module`, which can either be bytes or
100
- * a precompiled `WebAssembly.Module`.
101
- *
102
- * @param {{ module: SyncInitInput }} module - Passing `SyncInitInput` directly is deprecated.
103
- *
104
- * @returns {InitOutput}
105
- */
99
+ * Instantiates the given `module`, which can either be bytes or
100
+ * a precompiled `WebAssembly.Module`.
101
+ *
102
+ * @param {{ module: SyncInitInput }} module - Passing `SyncInitInput` directly is deprecated.
103
+ *
104
+ * @returns {InitOutput}
105
+ */
106
106
  export function initSync(module: { module: SyncInitInput } | SyncInitInput): InitOutput;
107
107
 
108
108
  /**
109
- * If `module_or_path` is {RequestInfo} or {URL}, makes a request and
110
- * for everything else, calls `WebAssembly.instantiate` directly.
111
- *
112
- * @param {{ module_or_path: InitInput | Promise<InitInput> }} module_or_path - Passing `InitInput` directly is deprecated.
113
- *
114
- * @returns {Promise<InitOutput>}
115
- */
109
+ * If `module_or_path` is {RequestInfo} or {URL}, makes a request and
110
+ * for everything else, calls `WebAssembly.instantiate` directly.
111
+ *
112
+ * @param {{ module_or_path: InitInput | Promise<InitInput> }} module_or_path - Passing `InitInput` directly is deprecated.
113
+ *
114
+ * @returns {Promise<InitOutput>}
115
+ */
116
116
  export default function __wbg_init (module_or_path?: { module_or_path: InitInput | Promise<InitInput> } | InitInput | Promise<InitInput>): Promise<InitOutput>;