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 Committed: https://crrev.com/10022cdeae785187e1d4329042b4ed294c393a16 Cr-Commit-Position: refs/heads/master@{#9246} Review URL: https://webrtc-codereview.appspot.com/47229004 Cr-Commit-Position: refs/heads/master@{#9253}