IOBuf: Add goodSize() Allocation-Sizing Method
Summary: For long-lived IOBufs, it can be useful to know whether their memory footprint can be usefully shrunk. This diff exposes a method that lets users see the smallest capacity an IOBuf could have while wrapping a particularly sized object. Without this, they have to do hacky math. Reviewed By: yfeldblum Differential Revision: D18440359 fbshipit-source-id: 1324700b58f0b2762cb3347b907ca5e04ebecb99
Showing
Please register or sign in to comment