Ty Overby
ce286b2519
fail with size limit on large maps too
2015-05-28 16:12:46 -07:00
Ty Overby
1c3f457cf9
Merge pull request #42 from jmesmon/fix-oom
...
check the size of seqs before trying to decode them
2015-05-28 16:09:20 -07:00
Cody P Schafer
ee0dccbd02
check the size of seqs before trying to decode them
...
Fixes #41
2015-05-28 16:03:02 -04:00
Cody P Schafer
9ab3320db7
SliceBox: allow Deref into &[T]
...
Allows more convenient use of SliceBox where one doesn't care whether
it represents a Vec<T> or &[T] and can handle using a &[T].
2015-05-28 12:05:30 -04:00
Ty Overby
e3837055d7
Removes the "bytes read" return part from `decode`
...
This reverts commit 5fa0c2bd8a .
Conflicts:
Cargo.toml
2015-05-18 23:28:39 -07:00
Jonathan Reem
a19d62cbe9
Add some more trait impls and methods to StrBox and SliceBox
2015-05-04 03:48:25 -07:00
Ty Overby
b6615fa262
derive debug for refbox and friends
2015-05-02 12:56:36 -07:00
Ty Overby
1d45873f1e
cleaned up refbox implementation and added tests
2015-05-02 12:23:27 -07:00
Ty Overby
3d8f97923d
strbox and slicebox
2015-05-02 03:52:27 -07:00
Ty Overby
5fa0c2bd8a
Decoders return the number of bytes that they read
...
Closes #35
2015-05-01 09:17:18 -07:00
Ty Overby
d87e7dad2d
rustfmt
2015-04-29 23:26:58 -07:00
TyOverby
209b274062
remove dependency on the unicode library
2015-04-29 18:09:01 -07:00
Mohd Tarmizi
4e0f2457ac
Fix rustdoc comment syntax
...
I also moved the comment block to the top of the file so that rustdoc won't throw "expected outer comment" error
2015-04-27 21:36:59 +08:00
Ty Overby
31572a2da5
remove use of the unicode library
2015-04-12 21:12:24 -07:00
Ty Overby
cb3c84acd6
Merge branch 'master' of github.com:TyOverby/bincode
2015-04-12 21:04:29 -07:00
Ty Overby
92d6b95c2c
remove reimplementation of read_exactly
2015-04-12 21:04:15 -07:00
TyOverby
be66f5fed4
change wording of some docs
2015-04-07 13:35:11 -07:00
Cody P Schafer
6240bcfc31
refbox: add Debug impl
2015-04-03 15:42:18 -04:00
Ty Overby
e5d0c33acd
update for rustc
2015-04-02 12:24:05 -07:00
Mike Dilger
a92429505a
Update full slice syntax
2015-04-01 08:54:58 +13:00
Mike Dilger
883b1097ab
Fix for upstream rustc changes
2015-04-01 08:41:50 +13:00
Mike Dilger
fcc64883b6
Derive Clone,PartialEq for EncodingError
2015-03-26 15:55:03 +13:00
Ty Overby
1bbd5377e3
rustup
2015-03-25 15:50:41 -07:00
Ty Overby
575002877b
removed warnings
2015-03-23 10:36:29 -07:00
Ty Overby
1355a93a23
Fix rustc updates.
2015-03-19 10:09:27 -07:00
Ty Overby
bf4d6f637b
clean up wording of docs
2015-03-08 15:42:35 -07:00
Cody P Schafer
b9f201c792
Don't require BufRead, only Read
...
While BufRead is preferable to avoid dog-slow performance, requiring
when no methods are called is also problematic, especially for wrappers
around Read that shouldn't necessarily need to know they're wrapping
BufRead.
2015-03-02 17:23:10 -05:00
Ty Overby
5f85e9b19a
Use new io, update for rustc changes
2015-02-21 21:42:59 -08:00
Ty Overby
28b5007731
mark new version
2015-02-21 21:05:30 -08:00
Ty Overby
29fde1b72f
ignore doctests in refbox
2015-02-20 08:57:01 -08:00
Ty Overby
6c6d92ef45
feature new_io
2015-02-20 08:48:48 -08:00
Ty Overby
f216e2575a
add documentation to refbox
2015-02-18 15:08:03 -08:00
Ty Overby
f5111f9476
Add RefBox.
...
RefBox is a structure for encoding references, and decoding them into
a box. This makes it easy to nest structures that otherwise would not
be able to be nested and encoded.
2015-02-17 13:18:25 -08:00
Ty Overby
873815ab0a
prepare for newio
2015-02-16 11:33:21 -08:00
Ty Overby
b15b85797e
added doc icon
2015-02-15 12:56:42 -08:00
Ty Overby
03966150c6
emit str using write_all
2015-02-09 18:19:23 -08:00
Ty Overby
15e7672703
prepare for the new io library
2015-02-09 14:56:40 -08:00
Ty Overby
2f3860ddab
clean up tests
2015-02-07 18:25:28 -08:00
Ty Overby
58c3c65eea
fix size estimation, add tests
2015-02-07 18:10:12 -08:00
Ty Overby
64a8877c55
add another test and change Show -> Debug
2015-02-05 01:18:44 -08:00
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
0e044483ee
Fix doc tests.
2015-01-16 13:25:55 -08: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
Francesco Mazzoli
eb933c9f89
`std::fmt::String` impls.
2015-01-15 02:24:36 +01: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
c7ed0e106c
`decode` takes a slice rather than a vec.
...
Also added comments for the main functions.
2015-01-08 23:32:21 -08:00