dl-common-util 0.5.0 → 0.5.1

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.
@@ -44,6 +44,7 @@ export declare namespace com.d10ng.common.base {
44
44
  get(): number;
45
45
  getByteByIndex(index: number): number;
46
46
  getBytesByIndex(dst: Int8Array, offset?: number, length?: number): com.d10ng.common.base.ByteBuffer;
47
+ getBytes(size: number): Int8Array;
47
48
  put(b: number): com.d10ng.common.base.ByteBuffer;
48
49
  putByteByIndex(index: number, b: number): com.d10ng.common.base.ByteBuffer;
49
50
  putBytesByIndex(src: Int8Array, offset?: number, length?: number): com.d10ng.common.base.ByteBuffer;
@@ -87,10 +88,27 @@ export declare namespace com.d10ng.common.base {
87
88
  function byteToUnsignedInt(_this_: number): number;
88
89
  function byteGetBit(_this_: number, bitIndex: number): number;
89
90
  }
91
+ export declare namespace com.d10ng.common.base {
92
+ function doubleToByteArray(_this_: number): Int8Array;
93
+ function byteArrayToDouble(_this_: Int8Array): number;
94
+ }
95
+ export declare namespace com.d10ng.common.base {
96
+ function floatToByteArray(_this_: number): Int8Array;
97
+ function byteArrayToFloat(_this_: Int8Array): number;
98
+ }
99
+ export declare namespace com.d10ng.common.base {
100
+ function byteArrayToInt(_this_: Int8Array): number;
101
+ }
102
+ export declare namespace com.d10ng.common.base {
103
+ function byteArrayToLong(_this_: Int8Array): any/* kotlin.Long */;
104
+ }
90
105
  export declare namespace com.d10ng.common.base {
91
106
  function byteArrayToShortArray(_this_: Int8Array): Int16Array;
92
107
  function shortArrayToByteArray(_this_: Int16Array): Int8Array;
93
108
  }
109
+ export declare namespace com.d10ng.common.base {
110
+ function byteArrayToShort(_this_: Int8Array): number;
111
+ }
94
112
  export declare namespace com.d10ng.common.base {
95
113
  function binStringToByte(_this_: string): number;
96
114
  function binStringToByteArray(_this_: string): Int8Array;