- Sort Score
- Num 10 results
- Language All
Results 61 - 70 of 139 for EOF (0.01 seconds)
-
src/cmd/asm/internal/lex/lex_test.go
} // drain returns a single string representing the processed input tokens. func drain(input *Input) string { var buf strings.Builder for { tok := input.Next() if tok == scanner.EOF { return buf.String() } if tok == '#' { continue } if buf.Len() > 0 { buf.WriteByte('.') } buf.WriteString(input.Text()) } } type badLexTest struct {
Created: Tue Dec 30 11:13:12 GMT 2025 - Last Modified: Tue Aug 29 07:48:38 GMT 2023 - 5.8K bytes - Click Count (0) -
src/bufio/bufio.go
// The bytes are taken from at most one Read on the underlying [Reader], // hence n may be less than len(p). // To read exactly len(p) bytes, use io.ReadFull(b, p). // If the underlying [Reader] can return a non-zero count with io.EOF, // then this Read method can do so as well; see the [io.Reader] docs. func (b *Reader) Read(p []byte) (n int, err error) { n = len(p) if n == 0 { if b.Buffered() > 0 { return 0, nil }
Created: Tue Dec 30 11:13:12 GMT 2025 - Last Modified: Wed Sep 03 14:04:47 GMT 2025 - 22K bytes - Click Count (0) -
src/archive/tar/example_test.go
} } if err := tw.Close(); err != nil { log.Fatal(err) } // Open and iterate through the files in the archive. tr := tar.NewReader(&buf) for { hdr, err := tr.Next() if err == io.EOF { break // End of archive } if err != nil { log.Fatal(err) } fmt.Printf("Contents of %s:\n", hdr.Name) if _, err := io.Copy(os.Stdout, tr); err != nil { log.Fatal(err) } fmt.Println()
Created: Tue Dec 30 11:13:12 GMT 2025 - Last Modified: Thu Nov 16 16:54:08 GMT 2017 - 1.4K bytes - Click Count (0) -
android/guava/src/com/google/common/io/LittleEndianDataInputStream.java
return readUnsignedByte() != 0; } /** * Reads a byte from the input stream checking that the end of file (EOF) has not been * encountered. * * @return byte read from input * @throws IOException if an error is encountered while reading * @throws EOFException if the end of file (EOF) is encountered. */ private byte readAndCheckByte() throws IOException, EOFException { int b1 = in.read();
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Wed Feb 12 03:49:18 GMT 2025 - 7.3K bytes - Click Count (0) -
src/cmd/asm/internal/lex/slice.go
tokens: tokens, base: base, line: line, pos: -1, // Next will advance to zero. } } func (s *Slice) Next() ScanToken { s.pos++ if s.pos >= len(s.tokens) { return scanner.EOF } return s.tokens[s.pos].ScanToken } func (s *Slice) Text() string { return s.tokens[s.pos].text } func (s *Slice) File() string { return s.base.Filename() }
Created: Tue Dec 30 11:13:12 GMT 2025 - Last Modified: Thu Jun 29 22:49:50 GMT 2023 - 1.6K bytes - Click Count (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/props/MavenProperties.java
valueLines = new ArrayList<>(); this.maybeTyped = maybeTyped; } /** * Reads a property line. Returns null if Stream is * at EOF. Concatenates lines ending with "\". * Skips lines beginning with "#" or "!" and empty lines. * The return value is a property definition (<code><name></code> * = <code><value></code>)
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Thu Oct 16 09:03:48 GMT 2025 - 38.5K bytes - Click Count (0) -
compat/maven-embedder/src/main/java/org/apache/maven/cli/props/MavenProperties.java
valueLines = new ArrayList<>(); this.maybeTyped = maybeTyped; } /** * Reads a property line. Returns null if Stream is * at EOF. Concatenates lines ending with "\". * Skips lines beginning with "#" or "!" and empty lines. * The return value is a property definition (<code><name></code> * = <code><value></code>)
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Wed Jul 23 17:27:08 GMT 2025 - 38.4K bytes - Click Count (0) -
cmd/storage-rest-client.go
return errAuthentication case errRPCAPIVersionUnsupported.Error(): return errRPCAPIVersionUnsupported case errServerTimeMismatch.Error(): return errServerTimeMismatch case io.EOF.Error(): return io.EOF case io.ErrUnexpectedEOF.Error(): return io.ErrUnexpectedEOF case errDiskStale.Error(): return errDiskNotFound case errDiskNotFound.Error(): return errDiskNotFound
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 08 02:38:41 GMT 2025 - 30.4K bytes - Click Count (0) -
update-credits.sh
#!/usr/bin/env bash gocredits . >CREDITS echo "All community contributions are licensed under the terms of the Apache 2 license." >>CREDITS echo "----------------------------------------------------------------" >>CREDITS cat >>CREDITS <<EOF Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 11 05:08:38 GMT 2023 - 11.4K bytes - Click Count (0) -
internal/hash/checker.go
} // Read satisfies io.Reader func (c Checker) Read(p []byte) (n int, err error) { n, err = c.r.Read(p) if n > 0 { c.h.Write(p[:n]) } if errors.Is(err, io.EOF) { got := c.h.Sum(nil) if !bytes.Equal(got, c.want) { return n, ErrInvalidChecksum } return n, err } return n, err } // Close satisfies io.Closer func (c Checker) Close() error {
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Mon Jan 20 14:49:07 GMT 2025 - 1.8K bytes - Click Count (0)