forked from MagicStack/asyncpg
-
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.
Add BitString.to_int and BitString.from_int
These methods assist in converting between BitStrings and ints, which is useful when bridging between Postgres and things like bitmasks, enum.IntFlag, etc. Their interface is modeled after Python's int.to_bytes and .from_bytes.
- Loading branch information
1 parent
eaa2fa1
commit ffd134e
Showing
2 changed files
with
101 additions
and
0 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