- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 29 for readHuff (0.12 sec)
-
src/internal/zstd/huff.go
// license that can be found in the LICENSE file. package zstd import ( "io" "math/bits" ) // maxHuffmanBits is the largest possible Huffman table bits. const maxHuffmanBits = 11 // readHuff reads Huffman table from data starting at off into table. // Each entry in a Huffman table is a pair of bytes. // The high byte is the encoded value. The low byte is the number
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 18 20:34:13 UTC 2023 - 4.7K bytes - Viewed (0) -
src/internal/zstd/literals.go
// Compressed_Literals_Block. // Read new huffman tree. if len(r.huffmanTable) < 1<<maxHuffmanBits { r.huffmanTable = make([]uint16, 1<<maxHuffmanBits) } huffmanTableBits, hoff, err := r.readHuff(data, off, r.huffmanTable) if err != nil { return 0, nil, err } r.huffmanTableBits = huffmanTableBits if totalStreamsSize < hoff-off { return 0, nil, r.makeError(off, "Huffman table too big")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 09 14:30:10 UTC 2023 - 8.8K bytes - Viewed (0) -
src/math/rand/v2/chacha8.go
func (c *ChaCha8) Read(p []byte) (n int, err error) { if c.readLen > 0 { n = copy(p, c.readBuf[len(c.readBuf)-c.readLen:]) c.readLen -= n p = p[n:] } for len(p) >= 8 { byteorder.LePutUint64(p, c.Uint64()) p = p[8:] n += 8 } if len(p) > 0 { byteorder.LePutUint64(c.readBuf[:], c.Uint64()) n += copy(p, c.readBuf[:]) c.readLen = 8 - len(p) } return }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 22:09:08 UTC 2024 - 2.8K bytes - Viewed (0) -
src/net/http/internal/chunked_test.go
}() cr := NewChunkedReader(pr) readBuf := make([]byte, 7) n, err := cr.Read(readBuf) if err != nil { t.Fatal(err) } want := "1234567" if n != 7 || string(readBuf) != want { t.Fatalf("Read: %v %q; want %d, %q", n, readBuf[:n], len(want), want) } go func() { pw.Write([]byte("xx")) }() _, err = cr.Read(readBuf) if got := fmt.Sprint(err); !strings.Contains(got, "malformed") {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jan 04 20:45:19 UTC 2024 - 8K bytes - Viewed (0) -
src/math/rand/v2/chacha8_test.go
"readbuf:\x06j\xa6\"\xaf`\x11chacha8:\x00\x00\x00\x00\x00\x00\x00\x02ABCDEFGHIJKLMNOPQRSTUVWXYZ123456", "readbuf:\x05\xa6\"\xaf`\x11chacha8:\x00\x00\x00\x00\x00\x00\x00\x02ABCDEFGHIJKLMNOPQRSTUVWXYZ123456", "readbuf:\x04\"\xaf`\x11chacha8:\x00\x00\x00\x00\x00\x00\x00\x02ABCDEFGHIJKLMNOPQRSTUVWXYZ123456", "readbuf:\x03\xaf`\x11chacha8:\x00\x00\x00\x00\x00\x00\x00\x02ABCDEFGHIJKLMNOPQRSTUVWXYZ123456",
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 22:09:08 UTC 2024 - 55K bytes - Viewed (0) -
platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/DefaultFileLockManagerWithCrossVersionProtocolTest.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Jan 10 15:52:52 UTC 2024 - 2K bytes - Viewed (0) -
platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/filelock/LockInfoSerializer.java
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:08:47 UTC 2023 - 1.8K bytes - Viewed (0) -
platforms/core-execution/worker-main/src/main/java/org/gradle/process/internal/worker/GradleWorkerMain.java
for (int i = 0; i < sharedPackagesCount; i++) { sharedPackages.add(instr.readUTF()); } // Read worker implementation classpath int classPathLength = instr.readInt(); URL[] implementationClassPath = new URL[classPathLength]; for (int i = 0; i < classPathLength; i++) { String url = instr.readUTF(); implementationClassPath[i] = new URL(url); }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu May 23 05:58:56 UTC 2024 - 3.5K bytes - Viewed (0) -
platforms/core-execution/worker-main/src/main/java/org/gradle/process/internal/worker/child/BootstrapSecurityManager.java
int count = inputStream.readInt(); StringBuilder classpathStr = new StringBuilder(); for (int i = 0; i < count; i++) { String entry = inputStream.readUTF(); File file = new File(entry); addUrlMethod.invoke(systemClassLoader, file.toURI().toURL()); if (i > 0) { classpathStr.append(File.pathSeparator);
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu May 23 05:58:56 UTC 2024 - 3.5K bytes - Viewed (0) -
platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/NamespaceId.java
try (ByteArrayInputStream bais = new ByteArrayInputStream(data); DataInputStream dis = new DataInputStream(bais)) { String namespace = dis.readUTF(); String name = dis.readUTF(); return new NamespaceId(namespace, name); } catch (Exception e) { throw new RuntimeException("Failed decoding namespace ID"); } }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 10 21:10:11 UTC 2023 - 3.5K bytes - Viewed (0)