oneof_field_pack_to_buffer() function
Pack a oneof field to a buffer. Only packs the field that is selected by the case enum.
Arguments
oneof_case
Enum value that selects the field in the oneof.
member
The element to be packed.
buffer
Virtual buffer to append data to.
Return value
Number of bytes serialised to `buffer`.