Add trimAtMost functions
authorSubodh Iyengar <subodh@fb.com>
Wed, 5 Apr 2017 22:15:49 +0000 (15:15 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Wed, 5 Apr 2017 22:21:35 +0000 (15:21 -0700)
commit120cc11d827f07e1bcbcc12132d871f167d5342b
tree34d33859a2ee7bc53c1c086d4620fc6dcc18a180
parent2d2d3d3f923a6efb92ad2d17b10098b33ea68d02
Add trimAtMost functions

Summary:
Add trimAtMost start and trimAtMost end.
These are useful functions to have if you
don't care about trimming an exact amount.

Reviewed By: yfeldblum

Differential Revision: D4658087

fbshipit-source-id: f7dd62c0f4837503e59cdec75fdad433be20306c
folly/io/IOBufQueue.cpp
folly/io/IOBufQueue.h
folly/io/test/IOBufQueueTest.cpp