Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 238 for umagic (0.16 sec)

  1. src/hash/crc32/crc32.go

    func (d *digest) BlockSize() int { return 1 }
    
    func (d *digest) Reset() { d.crc = 0 }
    
    const (
    	magic         = "crc\x01"
    	marshaledSize = len(magic) + 4 + 4
    )
    
    func (d *digest) MarshalBinary() ([]byte, error) {
    	b := make([]byte, 0, marshaledSize)
    	b = append(b, magic...)
    	b = byteorder.BeAppendUint32(b, tableSum(d.tab))
    	b = byteorder.BeAppendUint32(b, d.crc)
    	return b, nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun May 12 05:36:29 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  2. test/fixedbugs/issue11771.go

    //go:build !nacl && !js && !wasip1 && gc
    
    // Copyright 2015 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Issue 11771: Magic comments should ignore carriage returns.
    
    package main
    
    import (
    	"bytes"
    	"fmt"
    	"io/ioutil"
    	"log"
    	"os"
    	"os/exec"
    	"path/filepath"
    	"runtime"
    )
    
    func main() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiextensions-apiserver/test/integration/ratcheting_test_cases/invalid/httproute/invalid-header-name.yaml

    apiVersion: gateway.networking.k8s.io/v1beta1
    kind: HTTPRoute
    metadata:
      name: invalid-header-name
    spec:
      rules:
      - matches:
        - headers:
          - type: Exact
            name: magic/
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 27 17:15:18 UTC 2023
    - 203 bytes
    - Viewed (0)
  4. pilot/pkg/config/monitor/monitor_test.go

    	"istio.io/istio/pkg/config/schema/collections"
    	"istio.io/istio/pkg/config/schema/gvk"
    	"istio.io/istio/pkg/test/util/retry"
    )
    
    var createConfigSet = []*config.Config{
    	{
    		Meta: config.Meta{
    			Name:             "magic",
    			GroupVersionKind: gvk.Gateway,
    		},
    		Spec: &networking.Gateway{
    			Servers: []*networking.Server{
    				{
    					Port: &networking.Port{
    						Number:   80,
    						Protocol: "HTTP",
    						Name:     "http",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 31 14:48:28 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  5. src/internal/coverage/defs.go

    // meta-data blobs/sections (one per instrumented package), and an offsets
    // area storing the offsets of each section. Format of the meta-data
    // file looks like:
    //
    // --header----------
    //  | magic: [4]byte magic string
    //  | version
    //  | total length of meta-data file in bytes
    //  | numPkgs: number of package entries in file
    //  | hash: [16]byte hash of entire meta-data payload
    //  | offset to string table section
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 14 12:51:16 UTC 2023
    - 11.9K bytes
    - Viewed (0)
  6. src/time/zoneinfo_android.go

    	}
    	defer closefd(fd)
    
    	buf := make([]byte, headersize)
    	if err := preadn(fd, buf, 0); err != nil {
    		return nil, errors.New("corrupt tzdata file " + file)
    	}
    	d := dataIO{buf, false}
    	if magic := d.read(6); string(magic) != "tzdata" {
    		return nil, errors.New("corrupt tzdata file " + file)
    	}
    	d = dataIO{buf[12:], false}
    	indexOff, _ := d.big4()
    	dataOff, _ := d.big4()
    	indexSize := dataOff - indexOff
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 18 20:57:35 UTC 2022
    - 2.2K bytes
    - Viewed (0)
  7. src/internal/zstd/zstd.go

    retry:
    	relativeOffset := 0
    
    	// Read magic number. RFC 3.1.1.
    	if _, err := io.ReadFull(r.r, r.scratch[:4]); err != nil {
    		// We require that the stream contains at least one frame.
    		if err == io.EOF && !r.readOneFrame {
    			err = io.ErrUnexpectedEOF
    		}
    		return r.wrapError(relativeOffset, err)
    	}
    
    	if magic := binary.LittleEndian.Uint32(r.scratch[:4]); magic != 0xfd2fb528 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 30 04:10:45 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  8. src/debug/pe/pe.go

    	NumberOfSymbols      uint32
    	SizeOfOptionalHeader uint16
    	Characteristics      uint16
    }
    
    type DataDirectory struct {
    	VirtualAddress uint32
    	Size           uint32
    }
    
    type OptionalHeader32 struct {
    	Magic                       uint16
    	MajorLinkerVersion          uint8
    	MinorLinkerVersion          uint8
    	SizeOfCode                  uint32
    	SizeOfInitializedData       uint32
    	SizeOfUninitializedData     uint32
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 09 01:21:43 UTC 2022
    - 6.6K bytes
    - Viewed (0)
  9. pkg/test/echo/server/forwarder/tcp.go

    	}
    
    	// For server first protocol, we expect the server to send us the magic string first
    	if cfg.Request.ServerFirst {
    		readBytes, err := bufio.NewReader(conn).ReadBytes('\n')
    		if err != nil {
    			fwLog.Warnf("server first TCP read failed: %v", err)
    			return "", err
    		}
    		if string(readBytes) != common.ServerFirstMagicString {
    			return "", fmt.Errorf("did not receive magic string. Want %q, got %q", common.ServerFirstMagicString, string(readBytes))
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jul 20 19:13:32 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  10. src/compress/bzip2/bzip2.go

    const bzip2FinalMagic = 0x177245385090
    
    // setup parses the bzip2 header.
    func (bz2 *reader) setup(needMagic bool) error {
    	br := &bz2.br
    
    	if needMagic {
    		magic := br.ReadBits(16)
    		if magic != bzip2FileMagic {
    			return StructuralError("bad magic value")
    		}
    	}
    
    	t := br.ReadBits(8)
    	if t != 'h' {
    		return StructuralError("non-Huffman entropy encoding")
    	}
    
    	level := br.ReadBits(8)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 13:32:40 UTC 2024
    - 13K bytes
    - Viewed (0)
Back to top