- Sort Score
- Result 10 results
- Languages All
Results 81 - 90 of 1,030 for encodeTo (0.92 sec)
-
staging/src/k8s.io/apiserver/pkg/server/storage/storage_factory.go
cohabitatingResources []schema.GroupResource // encoderDecoratorFn is optional and may wrap the provided encoder prior to being serialized. encoderDecoratorFn func(runtime.Encoder) runtime.Encoder // decoderDecoratorFn is optional and may wrap the provided decoders (can add new decoders). The order of // returned decoders will be priority for attempt to decode.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Oct 20 13:35:58 UTC 2023 - 14.1K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/types/objectpath/objectpath.go
) // For is equivalent to new(Encoder).For(obj). // // It may be more efficient to reuse a single Encoder across several calls. func For(obj types.Object) (Path, error) { return new(Encoder).For(obj) } // An Encoder amortizes the cost of encoding the paths of multiple objects. // The zero value of an Encoder is ready to use. type Encoder struct {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 23.1K bytes - Viewed (0) -
cmd/kube-scheduler/app/options/configfile.go
if !ok { return buf, fmt.Errorf("unable to locate encoder -- %q is not a supported media type", mediaType) } var encoder runtime.Encoder switch cfg.TypeMeta.APIVersion { case configv1.SchemeGroupVersion.String(): encoder = scheme.Codecs.EncoderForVersion(info.Serializer, configv1.SchemeGroupVersion) default: encoder = scheme.Codecs.EncoderForVersion(info.Serializer, configv1.SchemeGroupVersion) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Aug 17 05:27:21 UTC 2023 - 3.4K bytes - Viewed (0) -
cmd/erasure-encode.go
return fmt.Errorf("%w (offline-disks=%d/%d)", writeErr, countErrs(p.errs, errDiskNotFound), len(p.writers)) } // Encode reads from the reader, erasure-encodes the data and writes to the writers. func (e *Erasure) Encode(ctx context.Context, src io.Reader, writers []io.Writer, buf []byte, quorum int) (total int64, err error) { writer := &multiWriter{ writers: writers, writeQuorum: quorum,
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Wed May 15 00:11:04 UTC 2024 - 2.9K bytes - Viewed (0) -
src/unicode/utf16/utf16.go
// It returns -1 if the rune is not a valid value to encode in UTF-16. func RuneLen(r rune) int { switch { case 0 <= r && r < surr1, surr3 <= r && r < surrSelf: return 1 case surrSelf <= r && r <= maxRune: return 2 default: return -1 } } // Encode returns the UTF-16 encoding of the Unicode code point sequence s. func Encode(s []rune) []uint16 { n := len(s) for _, v := range s {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 07 19:08:48 UTC 2024 - 3.9K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/endpoints/handlers/responsewriters/writers_test.go
} }() t.Parallel() encoder := &fakeEncoder{ buf: ctt.out, errs: ctt.outErrs, } if ctt.statusCode == 0 { ctt.statusCode = http.StatusOK } recorder := &fakeResponseRecorder{ ResponseRecorder: httptest.NewRecorder(), fe: encoder, errorAfterEncoding: true, } SerializeObject(ctt.mediaType, encoder, recorder, ctt.req, ctt.statusCode, ctt.object)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 15.7K bytes - Viewed (0) -
src/compress/bzip2/huffman.go
// // However, for the initial call it's possible that len(codes) // is zero or one. Both cases are invalid because a zero length // tree cannot encode anything and a length-1 tree can only // encode EOF and so is superfluous. We reject both. if len(codes) < 2 { return 0, StructuralError("empty Huffman tree") } // In this case the recursion doesn't always reduce the length
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 15 17:44:37 UTC 2024 - 6.7K bytes - Viewed (0) -
platforms/core-runtime/serialization/src/main/java/org/gradle/internal/serialize/kryo/KryoBackedEncoder.java
if (value == null) { throw new IllegalArgumentException("Cannot encode a null string."); } output.writeString(value); } @Override public void writeNullableString(@Nullable CharSequence value) { output.writeString(value); } @Override public void encodeChunked(EncodeAction<Encoder> writeAction) throws Exception { if (nested == null) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Apr 15 16:06:56 UTC 2024 - 4K bytes - Viewed (0) -
platforms/core-configuration/graph-serialization/src/main/kotlin/org/gradle/internal/serialize/graph/Contexts.kt
private val encoder: Encoder, private val beanStateWriterLookup: BeanStateWriterLookup, override val logger: Logger, override val tracer: Tracer?, problemsListener: ProblemsListener, private val classEncoder: ClassEncoder ) : AbstractIsolateContext<WriteIsolate>(codec, problemsListener), WriteContext, Encoder by encoder, AutoCloseable {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Jun 07 23:09:56 UTC 2024 - 7.3K bytes - Viewed (0) -
cmd/api-datatypes.go
} // DeleteMarkerMTime is an embedded type containing time.Time for XML marshal type DeleteMarkerMTime struct { time.Time } // MarshalXML encodes expiration date if it is non-zero and encodes // empty string otherwise func (t DeleteMarkerMTime) MarshalXML(e *xml.Encoder, startElement xml.StartElement) error { if t.Time.IsZero() { return nil } return e.EncodeElement(t.Time.Format(time.RFC3339), startElement) }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Tue May 14 07:26:50 UTC 2024 - 3K bytes - Viewed (0)