Skip to content

Commit 5fc328f

Browse files
author
Daniel Wirtz
committed
Docs
1 parent 2ed4327 commit 5fc328f

File tree

5 files changed

+340
-91
lines changed

5 files changed

+340
-91
lines changed

ByteBuffer.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1250,6 +1250,7 @@
12501250

12511251
/**
12521252
* Writes a zigzag encoded base 128 encoded variable-length integer as used in protobuf. This is an alias of {@link ByteBuffer#writeZigZagVarint32}.
1253+
* @function
12531254
* @param {number} value Value to write
12541255
* @param {number=} offset Offset to write to. Defaults to {@link ByteBuffer#offset} which will be modified only if omitted.
12551256
* @return {ByteBuffer|number} this if offset is omitted, else the actual number of bytes written.
@@ -1259,6 +1260,7 @@
12591260

12601261
/**
12611262
* Reads a zigzag encoded base 128 variable-length integer as used in protobuf. This is an alias of {@link ByteBuffer#readZigZagVarint32}.
1263+
* @function
12621264
* @param {number=} offset Offset to read from. Defaults to {@link ByteBuffer#offset} which will be modified only if omitted.
12631265
* @return {number|{value: number, length: number}} The value read if offset is omitted, else the value read and the actual number of bytes read.
12641266
* @throws {Error} If it's not a valid varint

ByteBuffer.min.map

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

ByteBuffer.noexpose.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1175,6 +1175,7 @@
11751175

11761176
/**
11771177
* Writes a zigzag encoded base 128 encoded variable-length integer as used in protobuf. This is an alias of {@link ByteBuffer#writeZigZagVarint32}.
1178+
* @function
11781179
* @param {number} value Value to write
11791180
* @param {number=} offset Offset to write to. Defaults to {@link ByteBuffer#offset} which will be modified only if omitted.
11801181
* @return {ByteBuffer|number} this if offset is omitted, else the actual number of bytes written.
@@ -1183,6 +1184,7 @@
11831184

11841185
/**
11851186
* Reads a zigzag encoded base 128 variable-length integer as used in protobuf. This is an alias of {@link ByteBuffer#readZigZagVarint32}.
1187+
* @function
11861188
* @param {number=} offset Offset to read from. Defaults to {@link ByteBuffer#offset} which will be modified only if omitted.
11871189
* @return {number|{value: number, length: number}} The value read if offset is omitted, else the value read and the actual number of bytes read.
11881190
* @throws {Error} If it's not a valid varint

0 commit comments

Comments
 (0)