dl-common-util 0.5.0 → 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.
@@ -41,12 +41,22 @@ export declare namespace com.d10ng.common.base {
41
41
  clear(): com.d10ng.common.base.ByteBuffer;
42
42
  flip(): com.d10ng.common.base.ByteBuffer;
43
43
  rewind(): com.d10ng.common.base.ByteBuffer;
44
+ /** @deprecated Use rewind() instead */
45
+ reset(): void;
44
46
  get(): number;
47
+ /** @deprecated Use get() instead */
48
+ getByte(): number;
45
49
  getByteByIndex(index: number): number;
46
50
  getBytesByIndex(dst: Int8Array, offset?: number, length?: number): com.d10ng.common.base.ByteBuffer;
51
+ getBytes(size: number): Int8Array;
47
52
  put(b: number): com.d10ng.common.base.ByteBuffer;
53
+ /** @deprecated Use put() instead */
54
+ setByte(b: number): com.d10ng.common.base.ByteBuffer;
48
55
  putByteByIndex(index: number, b: number): com.d10ng.common.base.ByteBuffer;
56
+ putBytes(src: Int8Array): com.d10ng.common.base.ByteBuffer;
49
57
  putBytesByIndex(src: Int8Array, offset?: number, length?: number): com.d10ng.common.base.ByteBuffer;
58
+ /** @deprecated Use put(value) instead */
59
+ setBytes(value: Int8Array): void;
50
60
  array(): Int8Array;
51
61
  getInt(): number;
52
62
  putInt(value: number): com.d10ng.common.base.ByteBuffer;
@@ -87,10 +97,27 @@ export declare namespace com.d10ng.common.base {
87
97
  function byteToUnsignedInt(_this_: number): number;
88
98
  function byteGetBit(_this_: number, bitIndex: number): number;
89
99
  }
100
+ export declare namespace com.d10ng.common.base {
101
+ function doubleToByteArray(_this_: number): Int8Array;
102
+ function byteArrayToDouble(_this_: Int8Array): number;
103
+ }
104
+ export declare namespace com.d10ng.common.base {
105
+ function floatToByteArray(_this_: number): Int8Array;
106
+ function byteArrayToFloat(_this_: Int8Array): number;
107
+ }
108
+ export declare namespace com.d10ng.common.base {
109
+ function byteArrayToInt(_this_: Int8Array): number;
110
+ }
111
+ export declare namespace com.d10ng.common.base {
112
+ function byteArrayToLong(_this_: Int8Array): any/* kotlin.Long */;
113
+ }
90
114
  export declare namespace com.d10ng.common.base {
91
115
  function byteArrayToShortArray(_this_: Int8Array): Int16Array;
92
116
  function shortArrayToByteArray(_this_: Int16Array): Int8Array;
93
117
  }
118
+ export declare namespace com.d10ng.common.base {
119
+ function byteArrayToShort(_this_: Int8Array): number;
120
+ }
94
121
  export declare namespace com.d10ng.common.base {
95
122
  function binStringToByte(_this_: string): number;
96
123
  function binStringToByteArray(_this_: string): Int8Array;
@@ -267,7 +294,7 @@ export declare namespace com.d10ng.common.transform {
267
294
  }
268
295
  export declare namespace com.d10ng.common.base {
269
296
  function numberToString(_this_: any/* kotlin.Number */, maxDecimalCount: number): string;
270
- function numberToByteArray(_this_?: any/* kotlin.Number */, size?: number): Int8Array;
297
+ function numberToByteArray(_this_?: any/* kotlin.Number */, size?: Nullable<number>): Int8Array;
271
298
  function asLong(_this_: any/* kotlin.Number */): any/* kotlin.Long */;
272
299
  }
273
300
  export as namespace com_github_D10NGYANG_DLCommonUtil;