Permalink
Browse files

Fixed: sfixed64 is not zig-zag encoded, see #692

  • Loading branch information...
dcodeIO committed Mar 1, 2017
1 parent 963cb63 commit 478ee51194878f24be8607e42e5259952607bd44

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.
BIN -7 Bytes (100%) dist/light/protobuf.min.js.gz
Binary file not shown.

Large diffs are not rendered by default.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.
BIN -3 Bytes (100%) dist/minimal/protobuf.min.js.gz
Binary file not shown.

Large diffs are not rendered by default.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.
BIN +31 Bytes (100%) dist/protobuf.min.js.gz
Binary file not shown.

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -1235,13 +1235,13 @@ export class Reader {
bool(): boolean;
/**
* Reads fixed 32 bits as a number.
* Reads fixed 32 bits as an unsigned 32 bit integer.
* @returns {number} Value read
*/
fixed32(): number;
/**
* Reads zig-zag encoded fixed 32 bits as a number.
* Reads fixed 32 bits as a signed 32 bit integer.
* @returns {number} Value read
*/
sfixed32(): number;
@@ -2632,29 +2632,31 @@ export class Writer {
bool(value: boolean): Writer;
/**
* Writes a 32 bit value as fixed 32 bits.
* Writes an unsigned 32 bit value as fixed 32 bits.
* @param {number} value Value to write
* @returns {Writer} `this`
*/
fixed32(value: number): Writer;
/**
* Writes a 32 bit value as fixed 32 bits, zig-zag encoded.
* Writes a signed 32 bit value as fixed 32 bits.
* @function
* @param {number} value Value to write
* @returns {Writer} `this`
*/
sfixed32(value: number): Writer;
/**
* Writes a 64 bit value as fixed 64 bits.
* Writes an unsigned 64 bit value as fixed 64 bits.
* @param {Long|number|string} value Value to write
* @returns {Writer} `this`
* @throws {TypeError} If `value` is a string and no long library is present.
*/
fixed64(value: (Long|number|string)): Writer;
/**
* Writes a 64 bit value as fixed 64 bits, zig-zag encoded.
* Writes a signed 64 bit value as fixed 64 bits.
* @function
* @param {Long|number|string} value Value to write
* @returns {Writer} `this`
* @throws {TypeError} If `value` is a string and no long library is present.
@@ -1,6 +1,6 @@
{
"name": "protobufjs",
"version": "6.6.4",
"version": "6.6.5",
"versionScheme": "~",
"description": "Protocol Buffers for JavaScript (& TypeScript).",
"author": "Daniel Wirtz <dcode+protobufjs@dcode.io>",
Oops, something went wrong.

0 comments on commit 478ee51

Please sign in to comment.