Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 1,247 for encodeTo (0.14 sec)

  1. src/unicode/utf8/utf8.go

    		i += size
    	}
    	return n
    }
    
    // RuneStart reports whether the byte could be the first byte of an encoded,
    // possibly invalid rune. Second and subsequent bytes always have the top two
    // bits set to 10.
    func RuneStart(b byte) bool { return b&0xC0 != 0x80 }
    
    // Valid reports whether p consists entirely of valid UTF-8-encoded runes.
    func Valid(p []byte) bool {
    	// This optimization avoids the need to recompute the capacity
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 02:00:36 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  2. platforms/core-configuration/graph-serialization/src/main/kotlin/org/gradle/internal/serialize/graph/Codec.kt

    
    inline fun <T : Any> WriteContext.encodePreservingIdentityOf(reference: T, encode: WriteContext.(T) -> Unit) {
        encodePreservingIdentityOf(isolate.identities, reference, encode)
    }
    
    
    inline fun <T : Any> WriteContext.encodePreservingSharedIdentityOf(reference: T, encode: WriteContext.(T) -> Unit) =
        encodePreservingIdentityOf(sharedIdentities, reference, encode)
    
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 23:09:56 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/app/web/admin/storage/AdminStorageAction.java

                        () -> asListHtml(encodeId(form.path)));
    
            }
            saveInfo(messages -> messages.addSuccessUploadFileToStorage(GLOBAL, form.uploadFile.getFileName()));
            return redirectWith(getClass(), moreUrl("list/" + encodeId(form.path)));
        }
    
        @Execute
        @Secured({ ROLE, ROLE + VIEW })
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 19.9K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. 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)
  7. src/image/png/fuzz_test.go

    			DefaultCompression,
    			NoCompression,
    			BestSpeed,
    			BestCompression,
    		}
    		for _, l := range levels {
    			var w bytes.Buffer
    			e := &Encoder{CompressionLevel: l}
    			err = e.Encode(&w, img)
    			if err != nil {
    				t.Errorf("failed to encode valid image: %s", err)
    				continue
    			}
    			img1, err := Decode(&w)
    			if err != nil {
    				t.Errorf("failed to decode roundtripped image: %s", err)
    				continue
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 03 15:56:27 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. 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)
Back to top