blob: 7fe2408b96074e5f4fcff00f79e9dfc19c3cd66a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
/* eslint-disable @typescript-eslint/ban-ts-comment */
import { HexBlock, HexBlockJson, HexBlockParams } from "../HexBlock";
import { ValueBlock, ValueBlockJson, ValueBlockParams } from "../ValueBlock";
export interface LocalPrimitiveValueBlockParams extends HexBlockParams, ValueBlockParams { }
export interface LocalPrimitiveValueBlockJson extends HexBlockJson, ValueBlockJson { }
export class LocalPrimitiveValueBlock extends HexBlock(ValueBlock) {
public static override NAME = "PrimitiveValueBlock";
constructor({
isHexOnly = true,
...parameters
}: LocalPrimitiveValueBlockParams = {}) {
super(parameters);
this.isHexOnly = isHexOnly;
}
}
export interface LocalPrimitiveValueBlock {
/**
* @deprecated since version 3.0.0
*/
// @ts-ignore
valueBeforeDecode: ArrayBuffer;
/**
* Binary data in ArrayBuffer representation
*
* @deprecated since version 3.0.0
*/
// @ts-ignore
valueHex: ArrayBuffer;
}
|