- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 15 for toSparse (0.97 sec)
-
src/archive/tar/format.go
func (b *block) toGNU() *headerGNU { return (*headerGNU)(b) } func (b *block) toSTAR() *headerSTAR { return (*headerSTAR)(b) } func (b *block) toUSTAR() *headerUSTAR { return (*headerUSTAR)(b) } func (b *block) toSparse() sparseArray { return sparseArray(b[:]) } // getFormat checks that the block is a valid tar header based on the checksum. // It then attempts to guess the specific format based on magic values.
Registered: Tue Dec 30 11:13:12 UTC 2025 - Last Modified: Fri Oct 13 18:36:46 UTC 2023 - 11.3K bytes - Viewed (0) -
src/archive/tar/reader.go
} if s.isExtended()[0] > 0 { // There are more entries. Read an extension header and parse its entries. if _, err := mustReadFull(tr.r, blk[:]); err != nil { return nil, err } s = blk.toSparse() continue } return spd, nil // Done } } // readGNUSparseMap1x0 reads the sparse map as stored in GNU's PAX sparse format // version 1.0. The format of the sparse map consists of a series of
Registered: Tue Dec 30 11:13:12 UTC 2025 - Last Modified: Tue Oct 07 19:46:36 UTC 2025 - 26.9K bytes - Viewed (0) -
src/archive/tar/reader_test.go
if format != FormatUnknown { blk.setFormat(format) } out = append(out, blk[:]...) // Write extended sparse blocks. for len(sps) > 0 { var blk block sps = populateSparseMap(blk.toSparse(), sps) out = append(out, blk[:]...) } return out } makeSparseStrings := func(sp []sparseEntry) (out []string) { var f formatter for _, s := range sp { var b [24]byteRegistered: Tue Dec 30 11:13:12 UTC 2025 - Last Modified: Mon Dec 15 16:34:13 UTC 2025 - 47.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/primitives/IntsTest.java
tryParseAndAssertEquals(LEAST, Integer.toString(LEAST)); assertThat(Ints.tryParse("")).isNull(); assertThat(Ints.tryParse("-")).isNull(); assertThat(Ints.tryParse("+1")).isNull(); assertThat(Ints.tryParse("9999999999999999")).isNull(); assertWithMessage("Max integer + 1") .that(Ints.tryParse(Long.toString(((long) GREATEST) + 1))) .isNull(); assertWithMessage("Max integer * 10")
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Dec 11 20:45:32 UTC 2025 - 29.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/primitives/DoublesTest.java
return Double.valueOf(input); } catch (NumberFormatException e) { return null; } } @GwtIncompatible // Doubles.tryParse private static void checkTryParse(String input) { Double expected = referenceTryParse(input); assertThat(Doubles.tryParse(input)).isEqualTo(expected); if (expected != null && !Doubles.FLOATING_POINT_PATTERN.matcher(input).matches()) {
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Dec 11 20:45:32 UTC 2025 - 30.9K bytes - Viewed (0) -
src/cmd/asm/internal/asm/line_test.go
for i, test := range tests { arch, ctxt := setArch(goarch) tokenizer := lex.NewTokenizer("", strings.NewReader(test.input+"\n"), nil) parser := NewParser(ctxt, arch, tokenizer) err := tryParse(t, func() { parser.Parse() }) switch { case err == nil: t.Errorf("#%d: %q: want error %q; have none", i, test.input, test.error) case !strings.Contains(err.Error(), test.error):Registered: Tue Dec 30 11:13:12 UTC 2025 - Last Modified: Tue Aug 29 07:48:38 UTC 2023 - 1.9K bytes - Viewed (0) -
src/cmd/asm/internal/asm/expr_test.go
Registered: Tue Dec 30 11:13:12 UTC 2025 - Last Modified: Tue Aug 29 07:48:38 UTC 2023 - 3.2K bytes - Viewed (0) -
android/guava/src/com/google/common/primitives/Ints.java
* a length of zero or cannot be parsed as an integer value * @throws NullPointerException if {@code string} is {@code null} * @since 11.0 */ public static @Nullable Integer tryParse(String string) { return tryParse(string, 10); } /** * Parses the specified string as a signed integer value using the specified radix. The ASCIIRegistered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Wed Oct 22 18:14:49 UTC 2025 - 31.3K bytes - Viewed (0) -
src/cmd/asm/internal/asm/operand_test.go
architecture, ctxt := setArch(goarch) return NewParser(ctxt, architecture, nil) } // tryParse executes parse func in panicOnError=true context. // parse is expected to call any parsing methods that may panic. // Returns error gathered from recover; nil if no parse errors occurred. // // For unexpected panics, calls t.Fatal. func tryParse(t *testing.T, parse func()) (err error) { panicOnError = true defer func() {
Registered: Tue Dec 30 11:13:12 UTC 2025 - Last Modified: Tue Aug 29 18:31:05 UTC 2023 - 23.9K bytes - Viewed (0) -
android/guava/src/com/google/common/primitives/Longs.java
* length of zero or cannot be parsed as a long value * @throws NullPointerException if {@code string} is {@code null} * @since 14.0 */ public static @Nullable Long tryParse(String string) { return tryParse(string, 10); } /** * Parses the specified string as a signed long value using the specified radix. The ASCIIRegistered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Wed Oct 22 18:14:49 UTC 2025 - 29K bytes - Viewed (0)