Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for MarshalToSizedBuffer (0.18 sec)

  1. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/micro_time_proto.go

    		return 0, nil
    	}
    	return m.ProtoMicroTime().MarshalTo(data)
    }
    
    // MarshalToSizedBuffer implements the protobuf marshalling interface.
    func (m *MicroTime) MarshalToSizedBuffer(data []byte) (int, error) {
    	if m == nil || m.Time.IsZero() {
    		return 0, nil
    	}
    	return m.ProtoMicroTime().MarshalToSizedBuffer(data)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 02 08:21:04 UTC 2022
    - 2.3K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/runtime/types_proto.go

    limitations under the License.
    */
    
    package runtime
    
    import (
    	"fmt"
    )
    
    type ProtobufMarshaller interface {
    	MarshalTo(data []byte) (int, error)
    }
    
    type ProtobufReverseMarshaller interface {
    	MarshalToSizedBuffer(data []byte) (int, error)
    }
    
    // NestedMarshalTo allows a caller to avoid extra allocations during serialization of an Unknown
    // that will contain an object that implements ProtobufMarshaller or ProtobufReverseMarshaller.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jul 25 18:54:00 UTC 2019
    - 2.6K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/time_proto.go

    	if m == nil || m.Time.IsZero() {
    		return 0, nil
    	}
    	return m.ProtoTime().MarshalTo(data)
    }
    
    // MarshalToSizedBuffer implements the protobuf reverse marshaling interface.
    func (m *Time) MarshalToSizedBuffer(data []byte) (int, error) {
    	if m == nil || m.Time.IsZero() {
    		return 0, nil
    	}
    	return m.ProtoTime().MarshalToSizedBuffer(data)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jul 25 18:54:00 UTC 2019
    - 3.3K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apimachinery/pkg/api/resource/quantity_proto.go

    	size := m.Size()
    	data = make([]byte, size)
    	n, err := m.MarshalToSizedBuffer(data[:size])
    	if err != nil {
    		return nil, err
    	}
    	return data[:n], nil
    }
    
    // MarshalTo is a customized version of the generated Protobuf unmarshaler for a struct
    // with a single string field.
    func (m *Quantity) MarshalTo(data []byte) (int, error) {
    	size := m.Size()
    	return m.MarshalToSizedBuffer(data[:size])
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 21 05:31:33 UTC 2021
    - 6K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apimachinery/pkg/util/intstr/generated.pb.go

    	size := m.Size()
    	dAtA = make([]byte, size)
    	n, err := m.MarshalToSizedBuffer(dAtA[:size])
    	if err != nil {
    		return nil, err
    	}
    	return dAtA[:n], nil
    }
    
    func (m *IntOrString) MarshalTo(dAtA []byte) (int, error) {
    	size := m.Size()
    	return m.MarshalToSizedBuffer(dAtA[:size])
    }
    
    func (m *IntOrString) MarshalToSizedBuffer(dAtA []byte) (int, error) {
    	i := len(dAtA)
    	_ = i
    	var l int
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:06:37 UTC 2024
    - 9.5K bytes
    - Viewed (0)
Back to top