Make IOBuf support 64-bit length and capacity
authorTudor Bosman <tudorb@fb.com>
Wed, 19 Feb 2014 04:20:15 +0000 (20:20 -0800)
committerDave Watson <davejwatson@fb.com>
Fri, 21 Feb 2014 21:40:49 +0000 (13:40 -0800)
commit81823a9cb036baed2a3cfe5b352832e6340e6a39
treec9a7a2946b8f546f7ea4f10d4e3d8bad4ffa791b
parentce4efaadff37f90dc707e84e0b64c3034739c81a
Make IOBuf support 64-bit length and capacity

Summary:
Remove type_ (unused), pack flags in least significant bits of sharedInfo_.
sizeof(IOBuf) remains 56 bytes.

Test Plan: folly/io/test with -opt and -dbg; iobuf*_test with asan as well.

Reviewed By: simpkins@fb.com

FB internal diff: D1179993
folly/io/Cursor.h
folly/io/IOBuf.cpp
folly/io/IOBuf.h
folly/io/IOBufQueue.cpp
folly/io/IOBufQueue.h