DescriptionAdd Read/WriteSizeT() functions to the pickle layer, plus one consumer.
This eliminates the need for callers to do explicit conversions, and also
ensures callers don't try to implement pickling of a size_t using a 32-bit type,
leading to truncation on 64-bit targets. The pickle layer will ensure 64-bit
types are always used.
I'll be changing other callsites to use this in future patches.
BUG=none
TEST=none
Committed: https://crrev.com/89a19f1430afa495acfccbc3ed7da9f51a7911d1
Cr-Commit-Position: refs/heads/master@{#297774}
Patch Set 1 #
Total comments: 2
Patch Set 2 : Review comment #Patch Set 3 : Return false instead #Patch Set 4 : Add tests #Patch Set 5 : Fix test failure #
Messages
Total messages: 22 (6 generated)
|