Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,618 for decode2 (0.15 sec)

  1. test/checkbce.go

    		useInt(a[i+51]) // ERROR "Found IsInBounds$"
    	}
    }
    
    func decode1(data []byte) (x uint64) {
    	for len(data) >= 32 {
    		x += binary.BigEndian.Uint64(data[:8])
    		x += binary.BigEndian.Uint64(data[8:16])
    		x += binary.BigEndian.Uint64(data[16:24])
    		x += binary.BigEndian.Uint64(data[24:32])
    		data = data[32:]
    	}
    	return x
    }
    
    func decode2(data []byte) (x uint64) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/arch/x86/x86asm/decode.go

    			// advance the position so that the decoded instruction
    			// size includes the byte we just compared against.
    			if decodeOp(decoder[pc]) == xJump {
    				pc = int(decoder[pc+1])
    			}
    			if decodeOp(decoder[pc]) == xFail {
    				pos++
    			}
    
    		case xCondIs64:
    			if mode == 64 {
    				pc = int(decoder[pc+1])
    			} else {
    				pc = int(decoder[pc])
    			}
    
    		case xCondIsMem:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 10 18:59:52 UTC 2023
    - 45.1K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apimachinery/pkg/runtime/serializer/cbor/internal/modes/decode.go

    		// For parity with JSON, strings can be decoded into time.Time if they are RFC 3339
    		// 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()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 10 14:03:36 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apimachinery/pkg/util/yaml/decoder.go

    	return 0, nil, nil
    }
    
    // decoder is a convenience interface for Decode.
    type decoder interface {
    	Decode(into interface{}) error
    }
    
    // YAMLOrJSONDecoder attempts to decode a stream of JSON documents or
    // YAML documents by sniffing for a leading { character.
    type YAMLOrJSONDecoder struct {
    	r          io.Reader
    	bufferSize int
    
    	decoder decoder
    }
    
    type JSONSyntaxError struct {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 19 21:24:36 UTC 2021
    - 10.2K bytes
    - Viewed (0)
  5. src/internal/pkgbits/decoder.go

    // Int64 decodes and returns a uint64 value from the element bitstream.
    func (r *Decoder) Uint64() uint64 {
    	r.Sync(SyncUint64)
    	return r.rawUvarint()
    }
    
    // Len decodes and returns a non-negative int value from the element bitstream.
    func (r *Decoder) Len() int { x := r.Uint64(); v := int(x); assert(uint64(v) == x); return v }
    
    // Int decodes and returns an int value from the element bitstream.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 27 20:58:46 UTC 2022
    - 13.2K bytes
    - Viewed (0)
  6. src/encoding/gob/decode.go

    // without requiring a full Decoder.
    func (dec *Decoder) newDecoderState(buf *decBuffer) *decoderState {
    	d := dec.freeList
    	if d == nil {
    		d = new(decoderState)
    		d.dec = dec
    	} else {
    		dec.freeList = d.next
    	}
    	d.b = buf
    	return d
    }
    
    func (dec *Decoder) freeDecoderState(d *decoderState) {
    	d.next = dec.freeList
    	dec.freeList = d
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 07 19:10:23 UTC 2023
    - 40.1K bytes
    - Viewed (0)
  7. src/encoding/gob/decoder.go

    const tooBig = (1 << 30) << (^uint(0) >> 62)
    
    // A Decoder manages the receipt of type and data information read from the
    // remote side of a connection.  It is safe for concurrent use by multiple
    // goroutines.
    //
    // The Decoder does only basic sanity checking on decoded input sizes,
    // and its limits are not configurable. Take caution when decoding gob data
    // from untrusted sources.
    type Decoder struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:04:28 UTC 2023
    - 7.2K bytes
    - Viewed (0)
  8. 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)
  9. src/encoding/json/decode.go

    	return d.off - 1
    }
    
    // phasePanicMsg is used as a panic message when we end up with something that
    // shouldn't happen. It can indicate a bug in the JSON decoder, or that
    // something is editing the data slice while the decoder executes.
    const phasePanicMsg = "JSON decoder out of sync - data changing underfoot?"
    
    func (d *decodeState) init(data []byte) *decodeState {
    	d.data = data
    	d.off = 0
    	d.savedError = nil
    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/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)
Back to top