@sswroom/sswr 1.6.13 → 1.6.14

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/data.d.ts CHANGED
@@ -83,6 +83,7 @@ export class DateTimeUtil
83
83
  static parseMonthStr(month: string): number;
84
84
  static dayInMonth(year: number, month: number): number;
85
85
  static getLocalTzQhr(): number;
86
+ static secs2FILETIME(secs: bigint, nanosec: number): bigint;
86
87
  }
87
88
 
88
89
  export class Duration
@@ -156,6 +157,7 @@ export class TimeInstant
156
157
  toEpochSec(): bigint;
157
158
  toEpochMS(): bigint;
158
159
  toEpochNS(): bigint;
160
+ toFILETIME(): bigint;
159
161
  static fromDotNetTicks(ticks: bigint | number): TimeInstant;
160
162
  }
161
163
 
@@ -164,7 +166,7 @@ export class Timestamp {
164
166
  tzQhr: number;
165
167
 
166
168
  constructor(inst: TimeInstant, tzQhr?: number);
167
- static fromTicks(ticks: number | number, tzQhr?: number): Timestamp;
169
+ static fromTicks(ticks: number | bigint, tzQhr?: number): Timestamp;
168
170
  static fromStr(str: string, defTzQhr?: number): Timestamp | null;
169
171
  static now(): Timestamp;
170
172
  static utcNow(): Timestamp;
@@ -203,6 +205,9 @@ export class Timestamp {
203
205
  toEpochSec(): bigint;
204
206
  toEpochMS(): bigint;
205
207
  toEpochNS(): bigint;
208
+ toMSDOSDate(): number;
209
+ toMSDOSTime(): number;
210
+ toFILETIME(): bigint;
206
211
  toString(pattern?: string): string;
207
212
  toStringISO8601(): string;
208
213
  toStringNoZone(): string;
@@ -251,6 +256,29 @@ export class ByteReader
251
256
  isASCIIText(ofst: number, len: number): boolean;
252
257
  }
253
258
 
259
+ export class ByteBuilder
260
+ {
261
+ tmpBuff: Uint8Array;
262
+ view: DataView;
263
+ buff: number[];
264
+
265
+ constructor();
266
+ writeInt8(ofst: number, value: number): void;
267
+ writeInt16(ofst: number, value: number, lsb: boolean): void;
268
+ writeInt24(ofst: number, value: number, lsb: boolean): void;
269
+ writeInt32(ofst: number, value: number, lsb: boolean): void;
270
+ writeInt64(ofst: number, value: bigint, lsb: boolean): void;
271
+ writeFloat64(ofst: number, value: number, lsb: boolean): void;
272
+ /** @returns number of bytes written */
273
+ writeUTF8(ofst: number, value: string): number;
274
+ /** @returns number of bytes written */
275
+ writeUTF16(ofst: number, value: string, lsb: boolean): number;
276
+ writeUInt8Array(ofst: number, buff: Uint8Array): void;
277
+ build(): Uint8Array;
278
+
279
+ allocBuff(ofst: number, len: number): void;
280
+ }
281
+
254
282
  export abstract class ParsedObject
255
283
  {
256
284
  sourceName: string;