Files
geo/backend/node_modules/restructure/src/Boolean.js

20 lines
329 B
JavaScript
Raw Normal View History

2026-02-04 00:11:19 +05:00
class BooleanT {
constructor(type) {
this.type = type;
}
decode(stream, parent) {
return !!this.type.decode(stream, parent);
}
size(val, parent) {
return this.type.size(val, parent);
}
encode(stream, val, parent) {
return this.type.encode(stream, +val, parent);
}
}
module.exports = BooleanT;