TyOverby
5952c3adb0
update for stdlib
2015-01-28 13:01:11 -08:00
Colin Sherratt
6a9011d2e3
Update to using Debug over Show.
...
Update the Error impls.
2015-01-24 19:27:19 -05:00
TyOverby
aeaa4aafd4
Merge branch 'master' of github.com:TyOverby/bincode
2015-01-16 13:21:46 -08:00
TyOverby
89a6b007b1
add encoded_size function
2015-01-16 13:21:35 -08:00
Ty Overby
54061d5eff
Add more documentation and a doc example
2015-01-13 13:37:53 -08:00
TyOverby
97e675ac06
Merge branch 'master' of github.com:TyOverby/bincode
...
Conflicts:
src/writer.rs
2015-01-09 12:58:04 -08:00
TyOverby
6fe6e8d251
update for 1.0.0-alpha
2015-01-09 12:51:58 -08:00
Ty Overby
08e726cb10
Added size checking on serialization.
...
Specifying a bound on serialization is optional, so when specified, it
will run a pass over the object and make sure that the serialized object
will fit into the required amount of bytes.
2015-01-08 22:32:59 -08:00
Ty Overby
70ca09a4da
Silence unused variable warning for EncoderWriter.
2015-01-08 11:20:53 -08:00
Francesco Mazzoli
14f6b84c88
Update to the latest rustc-serialize
2015-01-07 02:23:05 +01:00
TyOverby
bfbaeaacd1
added size-limits to all functions. Currently the size limits aren't actually enforced.
2015-01-05 11:19:08 -08:00
Francesco Mazzoli
f6b6eefdac
Use u32 to represent variant tags.
...
This makes it possible to exchange binary serialized structures between
different architectures, and reduces bandwidth. I doubt it's even
possible to have more than 4 billions variants anyway :).
2015-01-03 16:33:08 +01:00
crhino
8f982f334e
serialize crate has moved out of tree to rustc-serialize.
...
See commit b04bc5cc49
2014-12-24 12:25:57 -05:00
crhino
1219fe8cf0
Fix rustc warnings.
2014-12-15 23:15:19 -08:00
crhino
86d7094177
Update to latest rust nightly.
...
- rustc 0.13.0-nightly (126db549b 2014-12-15 00:07:35 +0000)
2014-12-15 20:28:42 -08:00
TyOverby
133a2bcd43
cleaned up imports
2014-11-13 10:31:29 -08:00
TyOverby
2131a69ec8
Fix `int` serilization / deserialization size.
...
Before this change, encoding an int would be platform
dependent because it would use write_be_int rather than
picking a size up front. This change chooses a size
(64 bit integer) and encodes and decodes with that size.
Closes #5
2014-11-13 10:28:04 -08:00
Theodore DeRego
2763b509ce
Updated to latest rust nightly
2014-11-09 11:42:14 -10:00
Theodore DeRego
3ef45f5a1f
Encode/decode to/from references to readers
2014-10-09 13:29:23 -10:00
Ty Overby
7d4cde7212
standardize to u64
2014-09-17 12:22:53 -07:00
Ty Overby
9bd822ecf8
renamed project to binary_encode
2014-09-17 02:12:26 -07:00
Ty Overby
fe0a296337
Implemented the reader, added tests
2014-09-15 18:19:04 -07:00