• Paul Yang's avatar
    Reserve unknown fields in php (#3659) · 60327468
    Paul Yang authored
    * Reserve unknown fields in upb
    1) For decoding, an unknownfields will be lazily created on message,
    which contains bytes of unknown fields.
    2) For encoding, if the unknownfields is present on message, all bytes
    contained in it will be serialized.
    
    * Register the function to encode unknown field at decode time.
    
    * Remove upb_handlers_setaddunknown
    
    * Use upb_sink_putunknown in decoder
    
    * Remove upb_pb_encoder_encode_unknown
    
    * Do not expose encode_unknown
    
    * Implement reserve unknown field in php Implement.
    
    * Make buffer private to CodedInputStream
    60327468
CodedOutputStream.php 5.24 KB