You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
558 B
19 lines
558 B
"use strict";
|
|
import { Coder } from "./abstract-coder";
|
|
// Clones the functionality of an existing Coder, but without a localName
|
|
export class AnonymousCoder extends Coder {
|
|
constructor(coder) {
|
|
super(coder.name, coder.type, undefined, coder.dynamic);
|
|
this.coder = coder;
|
|
}
|
|
defaultValue() {
|
|
return this.coder.defaultValue();
|
|
}
|
|
encode(writer, value) {
|
|
return this.coder.encode(writer, value);
|
|
}
|
|
decode(reader) {
|
|
return this.coder.decode(reader);
|
|
}
|
|
}
|
|
//# sourceMappingURL=anonymous.js.map
|