Jason Travis Smith
d9a3e21aec
Fixed the example and tests to use the new Converter trait.
...
Transmutable was changed to Converter. This needed to be reflected in
the example and tests.
Also, fixed some comments in the new transmutable module.
2016-01-05 23:42:08 -05:00
Jason Travis Smith
e7f2f252fa
Now supporting primitive type conversion with a trait!
...
This changes the old Transmutable trait to Converter and adds a new
Transmutable trait to all the primitive number types.
2016-01-05 17:46:31 -05:00
Jason Travis Smith
e6f1fbb229
Fixed the uint and int system types to not require num_bytes.
...
This also fixes the tests for buffer overflow to now work for all
primitive types.
2016-01-02 23:16:39 -05:00
Jason Travis Smith
6a623932ed
This is trying to remove the num_bytes argument from usize/isize methods.
...
If num_bytes can be removed then a generic to_bytes and from_bytes
trait can be created that will help with serializing structures
and generic data.
2016-01-02 14:54:03 -05:00
Jason Travis Smith
039c093b92
The library can now convert numbers to and from bytes.
...
Numbers can be converted to and from bytes in both
BigEndian and LittleEndian styles. This does not yet take care of
the other mathematical structures provided by Sigil.
Also, no tests of these capabilities have been written yet.
2015-12-30 17:06:48 -05:00