Skip to content
This repository has been archived by the owner on Dec 22, 2019. It is now read-only.

Commit

Permalink
Merge pull request #19 from Thunnini/add-int16
Browse files Browse the repository at this point in the history
add int16 encoding
  • Loading branch information
TanNgocDo authored Dec 1, 2018
2 parents 0ce54fc + b472987 commit 383df96
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/binaryEncoder.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ const encodeBinary = (instance, type, opts, isBare = true) => {
break;
}

case Types.Int16:
{
data = Encoder.encodeSignedVarint(tmpInstance)
break;
}

case Types.Int32:
{
if( opts.binFix32 ) {
Expand Down

0 comments on commit 383df96

Please sign in to comment.