-
Notifications
You must be signed in to change notification settings - Fork 138
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
43 changed files
with
6,442 additions
and
1,642 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
MODULE | ||
|
||
lfe_bits | ||
|
||
MODULE SUMMARY | ||
|
||
Lisp Flavoured Erlang (LFE) common binary functions | ||
|
||
DESCRIPTION | ||
|
||
This module contains a collection of library functions for for | ||
handling binaries. They are generally not called by the user. | ||
|
||
EXPORTS | ||
|
||
parse_bitspecs(Specs) -> | ||
{ok,Size,{Type,Unit,Sign,Endian}} | | ||
{error,Error}. | ||
|
||
Parse a bitspec and return the data. Unmentioned fields get | ||
the value 'default'. | ||
|
||
get_bitspecs(Specs) -> | ||
{ok,Size,{Type,Unit,Sign,Endian}} | | ||
{error,Error}. | ||
|
||
Parse a bitspec, apply defaults and return the | ||
data. Unmentioned fields get the value 'default'. | ||
|
||
Error Information | ||
|
||
The following error values are returned: | ||
|
||
{undefined_bittype,Type} | ||
bittype_unit |
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.