Skip to content

Commit

Permalink
Fix on Decimal 128 Unpack method
Browse files Browse the repository at this point in the history
  • Loading branch information
Giorgio committed Oct 17, 2020
1 parent a4f18cf commit cd5fa62
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/src/types/decimal_128.dart
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@ class BsonDecimal128 extends BsonObject {
int byteLength() => 16;

unpackValue(BsonBinary buffer) {
if (bin.byteList == null) {
bin.makeByteList();
}
bin.byteList.setRange(0, 16, buffer.byteList, buffer.offset);
buffer.offset += 16;
}
Expand Down

0 comments on commit cd5fa62

Please sign in to comment.