Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for huff (0.04 sec)

  1. src/internal/zstd/huff.go

    Ian Lance Taylor <******@****.***> 1677872527 -0800
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 18 20:34:13 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  2. src/image/jpeg/huffman.go

    		}
    		th := d.tmp[0] & 0x0f
    		// The baseline th <= 1 restriction is specified in table B.5.
    		if th > maxTh || (d.baseline && th > 1) {
    			return FormatError("bad Th value")
    		}
    		h := &d.huff[tc][th]
    
    		// Read nCodes and h.vals (and derive h.nCodes).
    		// nCodes[i] is the number of codes with code length i.
    		// h.nCodes is the total number of codes.
    		h.nCodes = 0
    		var nCodes [maxCodeLength]int32
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 11 17:08:05 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apimachinery/pkg/runtime/allocator_test.go

    	target := &Allocator{}
    	initialSize := 1000000 // 1MB
    	buff := target.Allocate(uint64(initialSize))
    	if cap(buff) < initialSize {
    		t.Fatalf("unexpected size of the buffer, expected at least 1MB, got: %v", cap(buff))
    	}
    	if len(buff) != initialSize {
    		t.Fatalf("unexpected length of the buffer, expected: %v, got: %v", initialSize, len(buff))
    	}
    
    	buff = target.Allocate(0)
    	if cap(buff) < initialSize {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 23 13:38:29 UTC 2022
    - 2.4K bytes
    - Viewed (0)
  4. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/report/unbound/UnboundRulesReporter.java

            writer.print(indent(1));
            writer.println(heading);
        }
    
        private String indent(int times) {
            StringBuffer buff = new StringBuffer(prefix);
            for (int i = 0; i < times; i++) {
                buff.append(INDENT);
            }
            return buff.toString();
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  5. tools/gen_istio_image_list.sh

               then
                  if [[ $line == *\\ ]]
                  then
                    buff=${buff%\\}$line
                  else
                    buff=${buff%\\}$line
                    break
                  fi
               fi
           fi
        done < temp.file
    
        for repo in $buff; do
           if [[ $repo == *docker.* ]]
           then
               istio_component=${repo##*docker.};
               istio_repo=istio/$istio_component;
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jul 25 04:04:35 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  6. scripts/format.sh

    #!/bin/sh -e
    set -x
    
    ruff check fastapi tests docs_src scripts --fix
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Apr 30 00:03:14 UTC 2024
    - 112 bytes
    - Viewed (0)
  7. scripts/lint.sh

    #!/usr/bin/env bash
    
    set -e
    set -x
    
    mypy fastapi
    ruff check fastapi tests docs_src scripts
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Apr 30 00:03:14 UTC 2024
    - 125 bytes
    - Viewed (0)
  8. .pre-commit-config.yaml

        -   id: check-yaml
            args:
            -   --unsafe
        -   id: end-of-file-fixer
        -   id: trailing-whitespace
    -   repo: https://github.com/charliermarsh/ruff-pre-commit
        rev: v0.2.0
        hooks:
        -   id: ruff
            args:
            - --fix
        -   id: ruff-format
    ci:
        autofix_commit_msg: 🎨 [pre-commit.ci] Auto format from pre-commit.com hooks
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Mar 26 16:56:53 UTC 2024
    - 737 bytes
    - Viewed (0)
  9. staging/src/k8s.io/cli-runtime/pkg/genericclioptions/print_flags_test.go

    	if err != nil {
    		t.Fatalf("unexpected err: %v", err)
    	}
    
    	for name, item := range tests {
    		buff := &bytes.Buffer{}
    		err := printer.PrintObj(item.obj, buff)
    		if err != nil {
    			t.Errorf("%v: unexpected err: %v", name, err)
    			continue
    		}
    		got := buff.String()
    		if item.expect != got {
    			t.Errorf("%v: expected %v, got %v", name, item.expect, got)
    		}
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 31 23:04:01 UTC 2019
    - 2K bytes
    - Viewed (0)
  10. src/compress/zlib/example_test.go

    	// Output: [120 156 202 72 205 201 201 215 81 40 207 47 202 73 225 2 4 0 0 255 255 33 231 4 147]
    }
    
    func ExampleNewReader() {
    	buff := []byte{120, 156, 202, 72, 205, 201, 201, 215, 81, 40, 207,
    		47, 202, 73, 225, 2, 4, 0, 0, 255, 255, 33, 231, 4, 147}
    	b := bytes.NewReader(buff)
    
    	r, err := zlib.NewReader(b)
    	if err != nil {
    		panic(err)
    	}
    	io.Copy(os.Stdout, r)
    	// Output: hello, world
    	r.Close()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 08 04:08:51 UTC 2014
    - 784 bytes
    - Viewed (0)
Back to top