Fully move to protobufjs
This commit is contained in:
parent
20ea409d9e
commit
570fb182d4
46 changed files with 1133 additions and 12401 deletions
|
@ -37,7 +37,7 @@ export function toString(data: Uint8Array): string {
|
|||
return bytes.toString(data);
|
||||
}
|
||||
|
||||
export function concatenate(list: Array<Uint8Array>): Uint8Array {
|
||||
export function concatenate(list: ReadonlyArray<Uint8Array>): Uint8Array {
|
||||
return bytes.concatenate(list);
|
||||
}
|
||||
|
||||
|
@ -50,3 +50,10 @@ export function isNotEmpty(
|
|||
): data is Uint8Array {
|
||||
return !bytes.isEmpty(data);
|
||||
}
|
||||
|
||||
export function areEqual(
|
||||
a: Uint8Array | null | undefined,
|
||||
b: Uint8Array | null | undefined
|
||||
): boolean {
|
||||
return bytes.areEqual(a, b);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue