This CL change the function declaration from uint16_t to size_t, and CHECKs that the size fits in uint16_t before proceeding. BUG=484432 R=tommi@webrtc.org Review URL: https://webrtc-codereview.appspot.com/47229004 Cr-Commit-Position: refs/heads/master@{#9246}