dolphindb 3.0.213 → 3.0.215

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/index.d.ts CHANGED
@@ -472,6 +472,9 @@ export declare class DdbVectorAny extends DdbObj {
472
472
  export declare class DdbVectorSymbol extends DdbObj<DdbSymbolExtendedValue> {
473
473
  constructor(strings: string[], name?: string);
474
474
  }
475
+ export declare class DdbVectorChar extends DdbObj<Int8Array> {
476
+ constructor(chars?: Uint8Array | Int8Array | ArrayBuffer, name?: string);
477
+ }
475
478
  export declare class DdbSetInt extends DdbObj<Int32Array> {
476
479
  constructor(ints: (number | null)[] | Set<number> | Int32Array);
477
480
  }
@@ -603,7 +606,7 @@ type DdbRpcType = 'script' | 'function' | 'variable' | 'connect';
603
606
  export interface DdbRpcOptions extends DdbEvalOptions {
604
607
  script?: string;
605
608
  func?: string;
606
- args?: (DdbObj | string | boolean)[];
609
+ args?: Convertable[];
607
610
  vars?: string[];
608
611
  skip_connection_check?: boolean;
609
612
  on_more_messages?: (buffer: Uint8Array) => void;
package/index.js CHANGED
@@ -2395,6 +2395,29 @@ export class DdbVectorSymbol extends DdbObj {
2395
2395
  });
2396
2396
  }
2397
2397
  }
2398
+ export class DdbVectorChar extends DdbObj {
2399
+ constructor(chars, name) {
2400
+ let ints;
2401
+ if (!chars)
2402
+ ints = new Int8Array();
2403
+ else if (chars instanceof ArrayBuffer)
2404
+ ints = new Int8Array(chars);
2405
+ else if (chars instanceof Uint8Array)
2406
+ ints = new Int8Array(chars.buffer, chars.byteOffset, chars.byteLength);
2407
+ else {
2408
+ check(chars instanceof Int8Array);
2409
+ ints = chars;
2410
+ }
2411
+ super({
2412
+ form: DdbForm.vector,
2413
+ type: DdbType.char,
2414
+ rows: ints.length,
2415
+ cols: 1,
2416
+ value: ints,
2417
+ name
2418
+ });
2419
+ }
2420
+ }
2398
2421
  export class DdbSetInt extends DdbObj {
2399
2422
  constructor(ints) {
2400
2423
  super({