@ddunigma/node 1.0.25 → 1.0.26
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.
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
export declare class Ddu64 {
|
|
2
|
+
private readonly dduChar;
|
|
3
|
+
private readonly paddingChar;
|
|
4
|
+
private readonly dduCharKr;
|
|
5
|
+
private readonly paddingCharKr;
|
|
6
|
+
private readonly defaultEncoding;
|
|
7
|
+
private readonly bitLengthMap;
|
|
8
|
+
private readonly binaryLookup;
|
|
9
|
+
private readonly dduBinaryLookup;
|
|
10
|
+
private readonly dduBinaryLookupKr;
|
|
11
|
+
private readonly paddingRegex;
|
|
12
|
+
constructor(dduChar?: string[] | string, paddingChar?: string);
|
|
13
|
+
private getBitLength;
|
|
14
|
+
private getLargestPowerOfTwo;
|
|
15
|
+
private splitString;
|
|
16
|
+
private getSelectedSets;
|
|
17
|
+
private bufferToDduBinary;
|
|
18
|
+
private dduBinaryToBuffer;
|
|
19
|
+
encode(input: Buffer | string, options?: {
|
|
20
|
+
dduSetSymbol?: string;
|
|
21
|
+
encoding?: BufferEncoding;
|
|
22
|
+
usePowerOfTwo?: boolean;
|
|
23
|
+
}): string;
|
|
24
|
+
decode(input: string, options?: {
|
|
25
|
+
dduSetSymbol?: string;
|
|
26
|
+
encoding?: BufferEncoding;
|
|
27
|
+
usePowerOfTwo?: boolean;
|
|
28
|
+
}): string;
|
|
29
|
+
}
|
|
30
|
+
export declare class Custom64 {
|
|
31
|
+
private readonly dduChar;
|
|
32
|
+
private readonly paddingChar;
|
|
33
|
+
private readonly dduCharKr;
|
|
34
|
+
private readonly paddingCharKr;
|
|
35
|
+
private readonly defaultEncoding;
|
|
36
|
+
private readonly bitLengthMap;
|
|
37
|
+
private readonly binaryLookup;
|
|
38
|
+
private readonly dduBinaryLookup;
|
|
39
|
+
private readonly dduBinaryLookupKr;
|
|
40
|
+
private readonly paddingRegex;
|
|
41
|
+
constructor(dduChar?: string[] | string, paddingChar?: string);
|
|
42
|
+
private getBitLength;
|
|
43
|
+
private getLargestPowerOfTwo;
|
|
44
|
+
private splitString;
|
|
45
|
+
private getSelectedSets;
|
|
46
|
+
private bufferToDduBinary;
|
|
47
|
+
private dduBinaryToBuffer;
|
|
48
|
+
encode(input: Buffer | string, options?: {
|
|
49
|
+
dduSetSymbol?: string;
|
|
50
|
+
encoding?: BufferEncoding;
|
|
51
|
+
usePowerOfTwo?: boolean;
|
|
52
|
+
}): string;
|
|
53
|
+
decode(input: string, options?: {
|
|
54
|
+
dduSetSymbol?: string;
|
|
55
|
+
encoding?: BufferEncoding;
|
|
56
|
+
usePowerOfTwo?: boolean;
|
|
57
|
+
}): string;
|
|
58
|
+
}
|
package/package.json
CHANGED
|
File without changes
|