fix: pass offset to size
Some checks are pending
CI / build (push) Waiting to run
CI / test (20.x) (push) Waiting to run
CI / lint (push) Waiting to run
release-please / release-please (push) Waiting to run

This commit is contained in:
cha0s 2024-12-08 22:45:08 -06:00
parent 5626729669
commit c0a1980fa9

View File

@ -28,8 +28,8 @@ class Schema {
return this.$$codec.encode(value, view, byteOffset);
}
size(value) {
return this.$$codec.size(value, 0);
size(value, offset = 0) {
return this.$$codec.size(value, offset);
}
}