- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 1,057 for qDecode (0.11 sec)
-
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/unmarshal/unmarshal.go
case "encoding/json", "encoding/xml", "encoding/asn1": argidx = 1 // func([]byte, interface{}) } } else if fn.Name() == "Decode" && recv != nil { // (*"encoding/json".Decoder).Decode // (* "encoding/gob".Decoder).Decode // (* "encoding/xml".Decoder).Decode _, named := typesinternal.ReceiverNamed(recv) if tname := named.Obj(); tname.Name() == "Decoder" { switch tname.Pkg().Path() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 3.1K bytes - Viewed (0) -
platforms/jvm/normalization-java/src/test/groovy/org/gradle/api/internal/changedetection/state/PropertyResourceBundleFallbackCharsetTest.groovy
def charset = new PropertyResourceBundleFallbackCharset() def "can decode a UTF-8 stream"() { when: CharBuffer result = charset.newDecoder().decode(buffer(utf8bytes)) then: result.toString() == new String(utf8bytes, "UTF-8") result.toString() != new String(utf8bytes, "ISO-8859-1") } def "can fallback to decode an IS0-8859-1 stream"() { when:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 15:09:49 UTC 2023 - 1.8K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/runtime/codec_check.go
import ( "fmt" "reflect" "k8s.io/apimachinery/pkg/runtime/schema" "k8s.io/apimachinery/pkg/util/json" ) // CheckCodec makes sure that the codec can encode objects like internalType, // decode all of the external types listed, and also decode them into the given // object. (Will modify internalObject.) (Assumes JSON serialization.) // TODO: verify that the correct external version is chosen on encode...
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jul 27 07:07:03 UTC 2022 - 1.8K bytes - Viewed (0) -
pkg/credentialprovider/plugin/config.go
} config, err := decode(data) if err != nil { return nil, fmt.Errorf("error decoding config %s: %w", configPath, err) } return config, nil } // decode decodes data into the internal CredentialProviderConfig type. func decode(data []byte) (*kubeletconfig.CredentialProviderConfig, error) { obj, gvk, err := codecs.UniversalDecoder().Decode(data, nil, nil) if err != nil { return nil, err
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 19 15:11:57 UTC 2023 - 4.5K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/watch/streamwatcher.go
) // Decoder allows StreamWatcher to watch any stream for which a Decoder can be written. type Decoder interface { // Decode should return the type of event, the decoded object, or an error. // An error will cause StreamWatcher to call Close(). Decode should block until // it has data or an error occurs. Decode() (action EventType, object runtime.Object, err error) // Close should close the underlying io.Reader, signalling to the source of
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Mar 06 13:42:59 UTC 2021 - 3.9K bytes - Viewed (0) -
src/image/png/example_test.go
func gopherPNG() io.Reader { return base64.NewDecoder(base64.StdEncoding, strings.NewReader(gopher)) } func ExampleDecode() { // This example uses png.Decode which can only decode PNG images. // Consider using the general image.Decode as it can sniff and decode any registered image format. img, err := png.Decode(gopherPNG()) if err != nil { log.Fatal(err) } levels := []string{" ", "░", "▒", "▓", "█"}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 21 19:47:04 UTC 2016 - 3.6K bytes - Viewed (0) -
okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/Adapters.kt
val BOOLEAN = BasicDerAdapter( name = "BOOLEAN", tagClass = DerHeader.TAG_CLASS_UNIVERSAL, tag = 1L, codec = object : BasicDerAdapter.Codec<Boolean> { override fun decode(reader: DerReader): Boolean = reader.readBoolean() override fun encode( writer: DerWriter, value: Boolean, ) = writer.writeBoolean(value) }, )
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 15K bytes - Viewed (0) -
pkg/scheduler/framework/runtime/registry_test.go
args *runtime.Unknown expected PluginFooConfig }{ { name: "test decode for JSON config", args: &runtime.Unknown{ ContentType: runtime.ContentTypeJSON, Raw: []byte(`{ "fooTest": "test decode" }`), }, expected: PluginFooConfig{ FooTest: "test decode", }, }, { name: "test decode for YAML config", args: &runtime.Unknown{ ContentType: runtime.ContentTypeYAML,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Sep 20 09:49:54 UTC 2023 - 6.5K bytes - Viewed (0) -
src/encoding/ascii85/ascii85.go
// Decode expects these to have been stripped by the caller. // // If flush is true, Decode assumes that src represents the // end of the input stream and processes it completely rather // than wait for the completion of another 32-bit block. // // [NewDecoder] wraps an [io.Reader] interface around Decode. func Decode(dst, src []byte, flush bool) (ndst, nsrc int, err error) { var v uint32 var nb int for i, b := range src {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 08 19:04:28 UTC 2023 - 6.9K bytes - Viewed (0) -
src/main/java/jcifs/dcerpc/msrpc/lsarpc.java
_src = _src.deferred; this.root_directory.decode(_src); } if ( _object_namep != 0 ) { if ( this.object_name == null ) { /* YOYOYO */ this.object_name = new rpc.unicode_string(); } _src = _src.deferred; this.object_name.decode(_src); }
Registered: Wed Jun 12 15:45:55 UTC 2024 - Last Modified: Fri Mar 22 20:40:13 UTC 2019 - 35.6K bytes - Viewed (0)