diffusion
Version:
Diffusion JavaScript client
28 lines (27 loc) • 588 B
JavaScript
;
/**
* @module Topics
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.write = exports.read = void 0;
var Codec = require("./../../io/codec");
/**
* Read a Topic ID from the stream
*
* @param bis the input stream
* @return the Topic ID that was read
*/
function read(bis) {
return Codec.readInt32(bis);
}
exports.read = read;
/**
* Write a Topic ID to the stream
*
* @param bos the output stream
* @param value the Topic ID to be written
*/
function write(bos, value) {
Codec.writeInt32(bos, value);
}
exports.write = write;