Skip to content

Commit 89dbcaf

Browse files
committed
inline variants, represent tuples as objects, convert to snake_case
1 parent d8ddf70 commit 89dbcaf

File tree

7 files changed

+308
-275
lines changed

7 files changed

+308
-275
lines changed
Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
1-
import { BinaryReader, BinaryWriter } from "./serde.ts";
1+
import { BinaryReader, BinaryWriter } from "./serde";
22

33
export class BincodeReader extends BinaryReader {
4-
readLength() {
5-
return Number(this.readU64())
4+
read_length() {
5+
return Number(this.read_u64())
66
}
77

8-
public readVariantIndex() {
9-
return this.readU32()
8+
public read_variant_index() {
9+
return this.read_u32()
1010
}
1111

12-
checkThatKeySlicesAreIncreasing(key1: [number, number], key2: [number, number]) {
12+
check_that_key_slices_are_increasing(key1: [number, number], key2: [number, number]) {
1313
return
1414
}
1515
}
1616

1717
export class BincodeWriter extends BinaryWriter {
18-
writeLength(value: number) {
19-
this.writeU64(value)
18+
write_length(value: number) {
19+
this.write_u64(value)
2020
}
2121

22-
public writeVariantIndex(value: number) {
23-
this.writeU32(value)
22+
public write_variant_index(value: number) {
23+
this.write_u32(value)
2424
}
2525

26-
public sortMapEntries(offsets: number[]) {
26+
public sort_map_entries(offsets: number[]) {
2727
return
2828
}
2929
}

0 commit comments

Comments
 (0)