xcom2charpool
Version:
Library for reading, manipulating, and managing XCOM 2 character pool binary files, supporting both browser and Node.js environments.
16 lines (15 loc) • 357 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.IntArrayElement = void 0;
/**
* Array element codec for int32 arrays.
*/
class IntArrayElement {
read(reader, ctx) {
return reader.int32();
}
write(writer, value, ctx) {
writer.int32(value);
}
}
exports.IntArrayElement = IntArrayElement;