forked from scylladb/gocql
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Similar to other integer types except you must demarshal varints greater than 8 bytes using a *big.Int. It is possible to detect unset varint fields when fetching using a **big.Int double pointer. Maybe all types should support this as a way to detect unset cells as opposed to cells with a value of zero? Varints are signed integers encoded using two's complement. When marshaling, gocql trims the encoded bytes down to the minimum required to encode the integer value (e.g. so if you encode a varint value that can fit in one byte, gocql will actually only send 1 byte).
- Loading branch information
Muir Manders
committed
Aug 7, 2014
1 parent
5cb2a37
commit 7eda240
Showing
4 changed files
with
340 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.