- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 10 for readVarint (0.25 sec)
-
src/encoding/binary/varint_test.go
if string(buf2) != "prefix"+string(buf[:n]) { t.Errorf("AppendVarint(%d): got %q, want %q", x, buf2, "prefix"+string(buf[:n])) } y, err := ReadVarint(bytes.NewReader(buf)) if err != nil { t.Errorf("ReadVarint(%d): %s", x, err) } if x != y { t.Errorf("ReadVarint(%d): got %d", x, y) } } func testUvarint(t *testing.T, x uint64) { buf := make([]byte, MaxVarintLen64) n := PutUvarint(buf, x)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 16 23:09:19 UTC 2023 - 5.5K bytes - Viewed (0) -
src/encoding/binary/varint.go
s += 7 } return x, errOverflow } // ReadVarint reads an encoded signed integer from r and returns it as an int64. // The error is [io.EOF] only if no bytes were read. // If an [io.EOF] happens after reading some but not all the bytes, // ReadVarint returns [io.ErrUnexpectedEOF]. func ReadVarint(r io.ByteReader) (int64, error) { ux, err := ReadUvarint(r) // ok to continue in presence of error x := int64(ux >> 1)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 08 19:04:28 UTC 2023 - 4.8K bytes - Viewed (0) -
src/cmd/internal/objfile/goobj.go
uvdelta := readvarint(p) if uvdelta == 0 && !first { return false } if uvdelta&1 != 0 { uvdelta = ^(uvdelta >> 1) } else { uvdelta >>= 1 } vdelta := int32(uvdelta) pcdelta := readvarint(p) * uint32(arch.MinLC) *pc += uint64(pcdelta) *val += vdelta return true } // readvarint reads, removes, and returns a varint from *p.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 15 15:39:57 UTC 2023 - 7.8K bytes - Viewed (0) -
src/cmd/internal/gcprog/gcprog.go
} nbit := int64(x &^ 0x80) if nbit == 0 { nbit, p = readvarint(p) } var count int64 count, p = readvarint(p) n += nbit * count } if len(p) > 0 { println("gcprog: found end instruction after", n, "ptrs, with", len(p), "bytes remaining") panic("gcprog: extra data at end of program") } return n } // readvarint reads a varint from p, returning the value and the remainder of p.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 11 16:34:30 UTC 2022 - 7.4K bytes - Viewed (0) -
src/internal/trace/batch.go
// for the batch. gen, err := binary.ReadUvarint(r) if err != nil { return batch{}, gen, fmt.Errorf("error reading batch gen: %w", err) } m, err := binary.ReadUvarint(r) if err != nil { return batch{}, gen, fmt.Errorf("error reading batch M ID: %w", err) } ts, err := binary.ReadUvarint(r) if err != nil { return batch{}, gen, fmt.Errorf("error reading batch timestamp: %w", err)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 2.9K bytes - Viewed (0) -
maven-core/src/test/resources/projects/modelsource/module01/pom.xml
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>test.readparent</groupId> <artifactId>local-parent</artifactId> <version>1.0</version> </parent> <artifactId>module01</artifactId>
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Sat Nov 09 12:45:14 UTC 2019 - 425 bytes - Viewed (0) -
src/internal/trace/raw/reader.go
func (r *Reader) readArgs(n int) ([]uint64, error) { var args []uint64 for i := 0; i < n; i++ { val, err := binary.ReadUvarint(r.r) if err != nil { return nil, err } args = append(args, val) } return args, nil } func (r *Reader) readData() ([]byte, error) { len, err := binary.ReadUvarint(r.r) if err != nil { return nil, err } var data []byte for i := 0; i < int(len); i++ {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 2.2K bytes - Viewed (0) -
maven-core/src/test/resources/projects/modelsource/pom.xml
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>test.readparent</groupId> <artifactId>local-parent</artifactId> <packaging>pom</packaging> <version>1.0</version> <modules> <module>module</module> </modules>
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Sat Nov 09 12:45:14 UTC 2019 - 442 bytes - Viewed (0) -
maven-core/src/test/resources/projects/modelsourcebasedir/pom.xml
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>test.readparent</groupId> <artifactId>local-parent</artifactId> <packaging>pom</packaging> <version>1.0</version> <dependencies> <dependency> <groupId>blah</groupId> <artifactId>blah</artifactId>
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Tue Aug 17 08:59:48 UTC 2021 - 645 bytes - Viewed (0) -
platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/metadata/ProjectMetadataController.kt
private suspend fun ReadContext.readVariants(factory: CalculatedValueContainerFactory): List<LocalVariantMetadata> { return readList { readVariant(factory) } } private suspend fun ReadContext.readVariant(factory: CalculatedValueContainerFactory): LocalVariantMetadata { val variantName = readString() val identifier = readNonNull<VariantResolveMetadata.Identifier>()
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Jun 08 11:29:30 UTC 2024 - 8.9K bytes - Viewed (0)