[libc][NFC] Clean up the memory buffer handling for RPC
authorJoseph Huber <jhuber6@vols.utk.edu>
Mon, 15 May 2023 14:46:56 +0000 (09:46 -0500)
committerJoseph Huber <jhuber6@vols.utk.edu>
Mon, 15 May 2023 16:30:23 +0000 (11:30 -0500)
commit6183826212f7c943b9f03c7d470ab058c53dd491
tree1746f11aab11d729eb51d8afe11ce1cb99481ef2
parent3181a6e3e7dae9292782216a55c5e1f0583c1668
[libc][NFC] Clean up the memory buffer handling for RPC

We do a lot of arithmetic on void pointers here, so include a helper and
make some more consistent names. Changes no functionality.

Reviewed By: JonChesterfield

Differential Revision: https://reviews.llvm.org/D150576
libc/src/__support/RPC/rpc.h
libc/src/__support/RPC/rpc_util.h