Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,057 for qDecode (0.12 sec)

  1. src/mime/encodedword.go

    		// not include vertical tabs (\v).
    		case ' ', '\t', '\n', '\r':
    		default:
    			return true
    		}
    	}
    	return false
    }
    
    // qDecode decodes a Q encoded string.
    func qDecode(s string) ([]byte, error) {
    	dec := make([]byte, len(s))
    	n := 0
    	for i := 0; i < len(s); i++ {
    		switch c := s[i]; {
    		case c == '_':
    			dec[n] = ' '
    		case c == '=':
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 16:12:35 UTC 2024
    - 10K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/runtime/serializer/cbor/internal/modes/decode.go

    		// timestamps.
    		ByteStringToTime: cbor.ByteStringToTimeAllowed,
    	}.DecMode()
    	if err != nil {
    		panic(err)
    	}
    	return decode
    }()
    
    // DecodeLax is derived from Decode, but does not complain about unknown fields in the input.
    var DecodeLax cbor.DecMode = func() cbor.DecMode {
    	opts := Decode.DecOptions()
    	opts.ExtraReturnErrors &^= cbor.ExtraDecErrorUnknownField // clear bit
    	dm, err := opts.DecMode()
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 10 14:03:36 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/arch/arm/armasm/decode.go

    	errShort   = fmt.Errorf("truncated instruction")
    	errUnknown = fmt.Errorf("unknown instruction")
    )
    
    var decoderCover []bool
    
    // Decode decodes the leading bytes in src as a single instruction.
    func Decode(src []byte, mode Mode) (inst Inst, err error) {
    	if mode != ModeARM {
    		return Inst{}, errMode
    	}
    	if len(src) < 4 {
    		return Inst{}, errShort
    	}
    
    	if decoderCover == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 22 17:16:14 UTC 2022
    - 12.6K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/arch/ppc64/ppc64asm/decode.go

    var (
    	// Errors
    	errShort   = fmt.Errorf("truncated instruction")
    	errUnknown = fmt.Errorf("unknown instruction")
    )
    
    var decoderCover []bool
    
    // Decode decodes the leading bytes in src as a single instruction using
    // byte order ord.
    func Decode(src []byte, ord binary.ByteOrder) (inst Inst, err error) {
    	if len(src) < 4 {
    		return inst, errShort
    	}
    	if decoderCover == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 22 17:16:14 UTC 2022
    - 5.6K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/arch/x86/x86asm/decode.go

    }
    
    // These are the errors returned by Decode.
    var (
    	ErrInvalidMode  = errors.New("invalid x86 mode in Decode")
    	ErrTruncated    = errors.New("truncated instruction")
    	ErrUnrecognized = errors.New("unrecognized instruction")
    )
    
    // decoderCover records coverage information for which parts
    // of the byte code have been executed.
    var decoderCover []bool
    
    // Decode decodes the leading bytes in src as a single instruction.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 10 18:59:52 UTC 2023
    - 45.1K bytes
    - Viewed (0)
  6. cmd/erasure-decode.go

    	}
    
    	// If we cannot decode, just return read quorum error.
    	return nil, fmt.Errorf("%w (offline-disks=%d/%d)", errErasureReadQuorum, disksNotFound, len(p.readers))
    }
    
    // Decode reads from readers, reconstructs data if needed and writes the data to the writer.
    // A set of preferred drives can be supplied. In that case they will be used and the data reconstructed.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue May 21 14:36:21 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  7. src/encoding/gob/decode.go

    // destination. It's used when calling Decode with a nil value.
    func (dec *Decoder) ignoreSingle(engine *decEngine) {
    	state := dec.newDecoderState(&dec.buf)
    	defer dec.freeDecoderState(state)
    	state.fieldnum = singletonField
    	delta := int(state.decodeUint())
    	if delta != 0 {
    		errorf("decode: corrupted data: non-zero delta for singleton")
    	}
    	instr := &engine.instr[singletonField]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 07 19:10:23 UTC 2023
    - 40.1K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/arch/arm64/arm64asm/decode.go

    	errUnknown = fmt.Errorf("unknown instruction")
    )
    
    var decoderCover []bool
    
    func init() {
    	decoderCover = make([]bool, len(instFormats))
    }
    
    // Decode decodes the 4 bytes in src as a single instruction.
    func Decode(src []byte) (inst Inst, err error) {
    	if len(src) < 4 {
    		return Inst{}, errShort
    	}
    
    	x := binary.LittleEndian.Uint32(src)
    
    Search:
    	for i := range instFormats {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 16 22:24:28 UTC 2022
    - 76.9K bytes
    - Viewed (0)
  9. src/encoding/json/decode.go

    	rv := reflect.ValueOf(v)
    	if rv.Kind() != reflect.Pointer || rv.IsNil() {
    		return &InvalidUnmarshalError{reflect.TypeOf(v)}
    	}
    
    	d.scan.reset()
    	d.scanWhile(scanSkipSpace)
    	// We decode rv not rv.Elem because the Unmarshaler interface
    	// test must be applied at the top level of the value.
    	err := d.value(rv)
    	if err != nil {
    		return d.addErrorContext(err)
    	}
    	return d.savedError
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:18:55 UTC 2024
    - 35.3K bytes
    - Viewed (0)
  10. src/internal/coverage/decodemeta/decode.go

    Than McIntosh <******@****.***> 1683835778 -0400
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 23 11:36:28 UTC 2023
    - 3.6K bytes
    - Viewed (0)
Back to top