Consolidate SharedBuffer::{GetAsBytes,GetPartAsBytes}
All GetPartAsBytes() callers request data from the beginning of the buffer, so the method doesn't need a position argument. Then it essentially turns into GetAsBytes(), and we can consolidate the two. (the hidden motivation here is to remove SharedBuffer random-access semantics, to facilitate future refactoring). BUG=728627 Change-Id: I63f9ff2f87a01cc4980d38526531dc9118dd87c8 Reviewed-on: https://chromium-review.googlesource.com/519682Reviewed-by:Kentaro Hara <haraken@chromium.org> Reviewed-by:
Leon Scroggins <scroggo@chromium.org> Reviewed-by:
Hiroshige Hayashizaki <hiroshige@chromium.org> Commit-Queue: Florin Malita <fmalita@chromium.org> Cr-Commit-Position: refs/heads/master@{#476304}
Showing
Please register or sign in to comment