dl-common-util 0.6.1 → 0.8.0

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.
@@ -1,12 +1,13 @@
1
1
  type Nullable<T> = T | null | undefined
2
+ declare function KtSingleton<T>(): T & (abstract new() => any);
2
3
  export declare namespace com.d10ng.common.base {
3
- function byteArrayToBinString(_this_?: Int8Array, space?: boolean): string;
4
- function byteArrayToHexString(_this_?: Int8Array, space?: boolean, uppercase?: boolean): string;
4
+ function byteArrayToBinString(_this_: Int8Array, space?: boolean): string;
5
+ function byteArrayToHexString(_this_: Int8Array, space?: boolean, uppercase?: boolean): string;
5
6
  function byteArrayToUnsignedInt(_this_: Int8Array): number;
6
- function byteArrayToUnsignedLong(_this_: Int8Array): any/* kotlin.Long */;
7
+ function byteArrayToUnsignedLong(_this_: Int8Array): bigint;
7
8
  function indexOfByteArray(_this_: Int8Array, bs: Int8Array): number;
8
- function byteArrayPadStart(_this_: Int8Array, length?: number, padByte?: number): Int8Array;
9
- function byteArrayPadEnd(_this_: Int8Array, length?: number, padByte?: number): Int8Array;
9
+ function byteArrayPadStart(_this_: Int8Array, length: number, padByte?: number): Int8Array;
10
+ function byteArrayPadEnd(_this_: Int8Array, length: number, padByte?: number): Int8Array;
10
11
  function byteArrayGetBitRange(_this_: Int8Array, start: number, length: number): Int8Array;
11
12
  }
12
13
  export declare namespace com.d10ng.common.base {
@@ -24,9 +25,22 @@ export declare namespace com.d10ng.common.base {
24
25
  get ordinal(): 0 | 1;
25
26
  static values(): Array<com.d10ng.common.base.ByteOrder>;
26
27
  static valueOf(value: string): com.d10ng.common.base.ByteOrder;
27
- static get Companion(): {
28
- nativeOrder(): com.d10ng.common.base.ByteOrder;
29
- };
28
+ }
29
+ /** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
30
+ namespace ByteOrder.$metadata$ {
31
+ const constructor: abstract new () => ByteOrder;
32
+ }
33
+ namespace ByteOrder {
34
+ abstract class Companion extends KtSingleton<Companion.$metadata$.constructor>() {
35
+ private constructor();
36
+ }
37
+ /** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
38
+ namespace Companion.$metadata$ {
39
+ abstract class constructor {
40
+ nativeOrder(): com.d10ng.common.base.ByteOrder;
41
+ private constructor();
42
+ }
43
+ }
30
44
  }
31
45
  class ByteBuffer {
32
46
  private constructor();
@@ -76,24 +90,45 @@ export declare namespace com.d10ng.common.base {
76
90
  putDoubleByIndex(index: number, value: number): com.d10ng.common.base.ByteBuffer;
77
91
  compact(): com.d10ng.common.base.ByteBuffer;
78
92
  getRemainingBytes(): Int8Array;
79
- static get Companion(): {
80
- allocate(capacity: number): com.d10ng.common.base.ByteBuffer;
81
- wrap(array: Int8Array): com.d10ng.common.base.ByteBuffer;
82
- };
83
93
  }
84
- class BufferOverflowException /* extends kotlin.Exception */ {
94
+ /** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
95
+ namespace ByteBuffer.$metadata$ {
96
+ const constructor: abstract new () => ByteBuffer;
97
+ }
98
+ namespace ByteBuffer {
99
+ abstract class Companion extends KtSingleton<Companion.$metadata$.constructor>() {
100
+ private constructor();
101
+ }
102
+ /** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
103
+ namespace Companion.$metadata$ {
104
+ abstract class constructor {
105
+ allocate(capacity: number): com.d10ng.common.base.ByteBuffer;
106
+ wrap(array: Int8Array): com.d10ng.common.base.ByteBuffer;
107
+ private constructor();
108
+ }
109
+ }
110
+ }
111
+ class BufferOverflowException extends /* kotlin.Exception */ Error {
85
112
  constructor();
86
113
  }
87
- class BufferUnderflowException /* extends kotlin.Exception */ {
114
+ /** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
115
+ namespace BufferOverflowException.$metadata$ {
116
+ const constructor: abstract new () => BufferOverflowException;
117
+ }
118
+ class BufferUnderflowException extends /* kotlin.Exception */ Error {
88
119
  constructor();
89
120
  }
121
+ /** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
122
+ namespace BufferUnderflowException.$metadata$ {
123
+ const constructor: abstract new () => BufferUnderflowException;
124
+ }
90
125
  }
91
126
  export declare namespace com.d10ng.common.base {
92
127
  function getBitRange(_this_: com.d10ng.common.base.ByteBuffer, start: number, length: number): Int8Array;
93
128
  }
94
129
  export declare namespace com.d10ng.common.base {
95
130
  function byteToBinString(_this_: number): string;
96
- function byteToHexString(_this_?: number, uppercase?: boolean): string;
131
+ function byteToHexString(_this_: number, uppercase?: boolean): string;
97
132
  function byteToUnsignedInt(_this_: number): number;
98
133
  function byteGetBit(_this_: number, bitIndex: number): number;
99
134
  }
@@ -109,7 +144,7 @@ export declare namespace com.d10ng.common.base {
109
144
  function byteArrayToInt(_this_: Int8Array): number;
110
145
  }
111
146
  export declare namespace com.d10ng.common.base {
112
- function byteArrayToLong(_this_: Int8Array): any/* kotlin.Long */;
147
+ function byteArrayToLong(_this_: Int8Array): bigint;
113
148
  }
114
149
  export declare namespace com.d10ng.common.base {
115
150
  function byteArrayToShortArray(_this_: Int8Array): Int16Array;
@@ -147,9 +182,13 @@ export declare namespace com.d10ng.common.calculate {
147
182
  static values(): Array<com.d10ng.common.calculate.ChecksumType>;
148
183
  static valueOf(value: string): com.d10ng.common.calculate.ChecksumType;
149
184
  }
150
- function assertChecksum(_this_?: Int8Array, type?: com.d10ng.common.calculate.ChecksumType): boolean;
151
- function getChecksum(_this_?: Int8Array, type?: com.d10ng.common.calculate.ChecksumType, start?: number, length?: number): number;
152
- function addChecksum(_this_?: Int8Array, type?: com.d10ng.common.calculate.ChecksumType): Int8Array;
185
+ /** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
186
+ namespace ChecksumType.$metadata$ {
187
+ const constructor: abstract new () => ChecksumType;
188
+ }
189
+ function assertChecksum(_this_: Int8Array, type?: com.d10ng.common.calculate.ChecksumType): boolean;
190
+ function getChecksum(_this_: Int8Array, type?: com.d10ng.common.calculate.ChecksumType, start?: number, length?: number): number;
191
+ function addChecksum(_this_: Int8Array, type?: com.d10ng.common.calculate.ChecksumType): Int8Array;
153
192
  }
154
193
  export declare namespace com.d10ng.common.calculate {
155
194
  function isDarkColor(color: string): boolean;
@@ -185,6 +224,10 @@ export declare namespace com.d10ng.common.coordinate {
185
224
  hashCode(): number;
186
225
  equals(other: Nullable<any>): boolean;
187
226
  }
227
+ /** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
228
+ namespace Coordinate.$metadata$ {
229
+ const constructor: abstract new () => Coordinate;
230
+ }
188
231
  }
189
232
  export declare namespace com.d10ng.common.coordinate {
190
233
  abstract class CoordinateSystemType {
@@ -206,6 +249,10 @@ export declare namespace com.d10ng.common.coordinate {
206
249
  static values(): Array<com.d10ng.common.coordinate.CoordinateSystemType>;
207
250
  static valueOf(value: string): com.d10ng.common.coordinate.CoordinateSystemType;
208
251
  }
252
+ /** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
253
+ namespace CoordinateSystemType.$metadata$ {
254
+ const constructor: abstract new () => CoordinateSystemType;
255
+ }
209
256
  }
210
257
  export declare namespace com.d10ng.common.coordinate {
211
258
  function convert(_this_: com.d10ng.common.coordinate.Coordinate, from: com.d10ng.common.coordinate.CoordinateSystemType, to: com.d10ng.common.coordinate.CoordinateSystemType): com.d10ng.common.coordinate.Coordinate;
@@ -213,13 +260,13 @@ export declare namespace com.d10ng.common.coordinate {
213
260
  function isNorthLatitude(_this_: number): boolean;
214
261
  function toLongitudeNoPre(_this_: number): number;
215
262
  function toLatitudeNoPre(_this_: number): number;
216
- function toFullLongitude(_this_: number, isEast?: boolean, isPositive?: boolean): number;
217
- function toFullLatitude(_this_: number, isNorth?: boolean, isPositive?: boolean): number;
263
+ function toFullLongitude(_this_: number, isEast: boolean, isPositive?: boolean): number;
264
+ function toFullLatitude(_this_: number, isNorth: boolean, isPositive?: boolean): number;
218
265
  function toDMS(_this_: number, isLongitude: boolean): com.d10ng.common.coordinate.DMS;
219
266
  function toLatLng(_this_: com.d10ng.common.coordinate.DMS): number;
220
- function toLatLngString(_this_: number, isLongitude?: boolean, pattern?: string): string;
221
- function toLongitudeString(_this_?: number, pattern?: string): string;
222
- function toLatitudeString(_this_?: number, pattern?: string): string;
267
+ function toLatLngString(_this_: number, isLongitude: boolean, pattern?: string): string;
268
+ function toLongitudeString(_this_: number, pattern?: string): string;
269
+ function toLatitudeString(_this_: number, pattern?: string): string;
223
270
  function toLatLngByString(_this_: string, pattern: string): number;
224
271
  function toLongitude(_this_: string, pattern: string): number;
225
272
  function toLatitude(_this_: string, pattern: string): number;
@@ -240,6 +287,10 @@ export declare namespace com.d10ng.common.coordinate {
240
287
  hashCode(): number;
241
288
  equals(other: Nullable<any>): boolean;
242
289
  }
290
+ /** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
291
+ namespace DMS.$metadata$ {
292
+ const constructor: abstract new () => DMS;
293
+ }
243
294
  }
244
295
  export declare namespace com.d10ng.common.coordinate {
245
296
  class DistanceAndBearing {
@@ -255,6 +306,10 @@ export declare namespace com.d10ng.common.coordinate {
255
306
  hashCode(): number;
256
307
  equals(other: Nullable<any>): boolean;
257
308
  }
309
+ /** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
310
+ namespace DistanceAndBearing.$metadata$ {
311
+ const constructor: abstract new () => DistanceAndBearing;
312
+ }
258
313
  }
259
314
  export declare namespace com.d10ng.common.coordinate {
260
315
  function getDistanceAndBearing(point1: com.d10ng.common.coordinate.Coordinate, point2: com.d10ng.common.coordinate.Coordinate): com.d10ng.common.coordinate.DistanceAndBearing;
@@ -279,7 +334,7 @@ export declare namespace com.d10ng.common.transform {
279
334
  function encodeUTF8(_this_: string): Int8Array;
280
335
  function decodeUTF8(_this_: Int8Array): string;
281
336
  function encodeUnicode(_this_: string): Int8Array;
282
- function encodeUnicodeString(_this_?: string, isNeedU?: boolean): string;
337
+ function encodeUnicodeString(_this_: string, isNeedU?: boolean): string;
283
338
  function decodeUnicode(_this_: Int8Array): string;
284
339
  function decodeUnicodeString(_this_: string): string;
285
340
  function encodeASCII(_this_: string): Int8Array;
@@ -288,12 +343,12 @@ export declare namespace com.d10ng.common.transform {
288
343
  function decodeASCIIString(_this_: string): string;
289
344
  }
290
345
  export declare namespace com.d10ng.common.transform {
291
- function toPinYin(_this_?: string, separator?: string): string;
346
+ function toPinYin(_this_: string, separator?: string): string;
292
347
  }
293
348
  export declare namespace com.d10ng.common.base {
294
349
  function numberToString(_this_: any/* kotlin.Number */, maxDecimalCount: number): string;
295
- function numberToByteArray(_this_?: any/* kotlin.Number */, size?: Nullable<number>): Int8Array;
296
- function asLong(_this_: any/* kotlin.Number */): any/* kotlin.Long */;
350
+ function numberToByteArray(_this_: any/* kotlin.Number */, size?: Nullable<number>): Int8Array;
351
+ function asLong(_this_: any/* kotlin.Number */): bigint;
297
352
  }
298
353
  export declare namespace com.d10ng.common.transform {
299
354
  function encodeGBK(_this_: string): Int8Array;