Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 71 of 71 for MarshalToSizedBuffer (0.27 sec)

  1. staging/src/k8s.io/apimachinery/pkg/runtime/serializer/protobuf/protobuf.go

    		// it also requires the caller to implement the more efficient Size and MarshalToSizedBuffer methods
    		encodedSize := uint64(t.Size())
    		data := memAlloc.Allocate(encodedSize)
    
    		n, err := t.MarshalToSizedBuffer(data)
    		if err != nil {
    			return err
    		}
    		_, err = w.Write(data[:n])
    		return err
    
    	case bufferedMarshaller:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 23 13:38:23 UTC 2022
    - 17.8K bytes
    - Viewed (0)
Back to top