capnp-ts
Version:
Strongly typed Cap'n Proto implementation for the browser and Node.js using TypeScript
18 lines (14 loc) • 469 B
text/typescript
/**
* @author jdiaz5513
*/
import { MAX_DEPTH } from "../../constants";
import { NOT_IMPLEMENTED } from "../../errors";
import { format } from "../../util";
import { Segment } from "../segment";
import { Pointer } from "./pointer";
export class Interface extends Pointer {
constructor(segment: Segment, byteOffset: number, depthLimit = MAX_DEPTH) {
super(segment, byteOffset, depthLimit);
throw new Error(format(NOT_IMPLEMENTED, "new Interface"));
}
}