diffusion
Version:
Diffusion JavaScript client
25 lines (24 loc) • 645 B
JavaScript
;
/**
* @module Services.TopicViews
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.readTopicView = void 0;
var Codec = require("./../../io/codec");
/**
* Read a topic view from the stream
*
* @param bis the input stream
* @return the {@link TopicView} that was read
*/
function readTopicView(bis) {
var name = Codec.readString(bis);
var specification = Codec.readString(bis);
var roles = new Set(Codec.readCollection(bis, Codec.readString));
return {
name: name,
specification: specification,
roles: roles
};
}
exports.readTopicView = readTopicView;