10 Commits

Author SHA1 Message Date
3e4094a50c Fixed the library to use the new Rust 2018 module system. 2019-01-20 01:08:14 -05:00
ff3558ea37 The conversion of an Array of bytes to a value can now fail gracefully.
This was added so that parsers can detect problems converting
a value and fail in an expected way.
2018-01-05 19:20:02 -05:00
44f23e40fd Adjusting repository locations. 2017-04-06 18:37:23 -04:00
03e9484e52 Fixed the conversion code to use macros I wrote.
The previous code was relying on the to_be and to_le functions from the
standard library. These now rely on macros that I wrote to handle the
bit packing and unpacking. These were macros and not functions because
it is really hard to define the types and capabilities needed to
turn them into general functions. As such, the macros should never be
published publically and the Converters should be used for conversions.

The Transmutable property should be used for serialization and internally
the primitive types, Elements, all use the Converter functions and any
other objects should use the Transmutable primitives to build their
binary forms.
2017-02-15 17:51:13 -05:00
8988f9f9ae This library has reach version 1.0.0!
This library is relatively stable and has been gone over pretty well.
As such, it is now at version 1.0.0 and is considered ready for
public release (Use in the public space, not giving the code away).
2016-12-22 19:13:50 -05:00
022f6ae87a Adds the ability to convert a value to the platform or network order.
This handles doing the configure check to see what the platform
endianess is for converting byte orders.
2016-11-03 15:04:29 -04:00
4f62caf654 Removed the Cargo.lock file from the repo and made Sigils a feature.
The Sigils library will now only be compiled in and able to convert
math structures if the convert_sigils feature is selected.

use_std would have also been set as a feature, but the library heavily
uses std::collections::vec::Vec. Until a non-std version of a collection
has been written, then this needs to be used.
2016-08-24 13:23:56 -04:00
Jason Travis Smith
e9ab0bdece Strings can now be transmuted or converted into binary data.
This also added the scribe library so that this library can use
the logging system.
2016-04-13 23:57:40 -04:00
Jason Travis Smith
cdd72603e5 Create a buffer overflow test.
This tests buffer overflow for the basic types. It does not currently
test the platform int and uint until the final function definitions
are determined.
2016-01-02 18:27:06 -05:00
Jason Travis Smith
fee27b18a3 Initial library commit.
The dependency on Sigils was also added.
2015-12-29 19:48:46 -05:00