1 | ;
|
2 | // *****************************************************************************
|
3 | // Copyright (C) 2021 Red Hat, Inc. and others.
|
4 | //
|
5 | // This program and the accompanying materials are made available under the
|
6 | // terms of the Eclipse Public License v. 2.0 which is available at
|
7 | // http://www.eclipse.org/legal/epl-2.0.
|
8 | //
|
9 | // This Source Code may also be made available under the following Secondary
|
10 | // Licenses when the conditions for such availability set forth in the Eclipse
|
11 | // Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
12 | // with the GNU Classpath Exception which is available at
|
13 | // https://www.gnu.org/software/classpath/license.html.
|
14 | //
|
15 | // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
16 | // *****************************************************************************
|
17 | Object.defineProperty(exports, "__esModule", { value: true });
|
18 | exports.ForwardingWriteBuffer = void 0;
|
19 | class ForwardingWriteBuffer {
|
20 | constructor(underlying) {
|
21 | this.underlying = underlying;
|
22 | }
|
23 | writeUint8(byte) {
|
24 | this.underlying.writeUint8(byte);
|
25 | return this;
|
26 | }
|
27 | writeUint16(value) {
|
28 | this.underlying.writeUint16(value);
|
29 | return this;
|
30 | }
|
31 | writeUint32(value) {
|
32 | this.underlying.writeUint32(value);
|
33 | return this;
|
34 | }
|
35 | writeLength(value) {
|
36 | this.underlying.writeLength(value);
|
37 | return this;
|
38 | }
|
39 | writeString(value) {
|
40 | this.underlying.writeString(value);
|
41 | return this;
|
42 | }
|
43 | writeBytes(value) {
|
44 | this.underlying.writeBytes(value);
|
45 | return this;
|
46 | }
|
47 | writeNumber(value) {
|
48 | this.underlying.writeNumber(value);
|
49 | return this;
|
50 | }
|
51 | commit() {
|
52 | this.underlying.commit();
|
53 | }
|
54 | }
|
55 | exports.ForwardingWriteBuffer = ForwardingWriteBuffer;
|
56 | //# sourceMappingURL=message-buffer.js.map |
\ | No newline at end of file |