commit | dc80b326997e74bf05587f0a703e7e9a3c50e83c | [log] [tgz] |
---|---|---|
author | Ben Chan <benchan@chromium.org> | Mon Apr 08 13:46:13 2013 -0700 |
committer | ChromeBot <chrome-bot@google.com> | Tue Apr 09 15:54:57 2013 -0700 |
tree | 4346f37488009d3d3ba2ad588a901b400215ef3c | |
parent | 60a3706bee5686ae2322a774b9e7d5e8e63fcaf7 [diff] |
shill: Add some helper methods to ByteString. This CL adds the following helper methods to ByteString: - CreateFromHexString: Create a ByteString from a hexadecimal string representation. - ConvertFromNetToCPUUInt32Array: Converts a ByteString from network order to host order in 32-bit chunks. - ConvertFromCPUToNetUInt32Array: Converts a ByteString from host order to network order in 32-bit chunks. BUG=chromium:225907 TEST=Build and run unit tests. Change-Id: I9c8c7a40d722ba6d520509d3ab7eb6c258753b7f Reviewed-on: https://gerrit.chromium.org/gerrit/47604 Reviewed-by: mukesh agrawal <quiche@chromium.org> Tested-by: Ben Chan <benchan@chromium.org> Commit-Queue: mukesh agrawal <quiche@chromium.org>