oneof_field_pack() function
Pack a oneof field and return the number of bytes written. Only packs the field that is selected by the case enum.
Arguments
oneof_case
Enum value that selects the field in the oneof.
Return value
Number of bytes written to `out`.