Skip to content

Commit aecbf99

Browse files
committed
Update decoder.ts
1 parent 4effb72 commit aecbf99

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/pinus-protobuf/lib/decoder.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,11 @@ export class Decoder {
112112
decodeProp(type: string, protos?: { [key: string]: any }) {
113113
switch (type) {
114114
case 'uInt32':
115+
case 'uInt64':
115116
return codec.decodeUInt32(this.getBytes());
116117
case 'int32':
117118
case 'sInt32':
119+
case 'sInt64':
118120
return codec.decodeSInt32(this.getBytes());
119121
case 'float':
120122
let float = this.buffer.readFloatLE(this.offset);
@@ -201,4 +203,4 @@ export class Decoder {
201203
peekBytes() {
202204
return this.getBytes(true);
203205
}
204-
}
206+
}

0 commit comments

Comments
 (0)