Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 61 for IO (0.34 sec)

  1. src/bytes/reader.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package bytes
    
    import (
    	"errors"
    	"io"
    	"unicode/utf8"
    )
    
    // A Reader implements the io.Reader, io.ReaderAt, io.WriterTo, io.Seeker,
    // io.ByteScanner, and io.RuneScanner interfaces by reading from
    // a byte slice.
    // Unlike a [Buffer], a Reader is read-only and supports seeking.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 17:10:31 GMT 2023
    - 3.9K bytes
    - Viewed (0)
  2. src/bytes/reader_test.go

    		{seek: io.SeekStart, off: -1, seekerr: "bytes.Reader.Seek: negative position"},
    		{seek: io.SeekStart, off: 1 << 33, wantpos: 1 << 33, readerr: io.EOF},
    		{seek: io.SeekCurrent, off: 1, wantpos: 1<<33 + 1, readerr: io.EOF},
    		{seek: io.SeekStart, n: 5, want: "01234"},
    		{seek: io.SeekCurrent, n: 5, want: "56789"},
    		{seek: io.SeekEnd, off: -1, n: 1, wantpos: 9, want: "9"},
    	}
    
    	for i, tt := range tests {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Dec 13 18:45:54 GMT 2021
    - 8K bytes
    - Viewed (0)
  3. src/archive/tar/writer.go

    	default:
    		return n, nil
    	}
    }
    
    func (sw *sparseFileWriter) ReadFrom(r io.Reader) (n int64, err error) {
    	rs, ok := r.(io.ReadSeeker)
    	if ok {
    		if _, err := rs.Seek(0, io.SeekCurrent); err != nil {
    			ok = false // Not all io.Seeker can really seek
    		}
    	}
    	if !ok {
    		return io.Copy(struct{ io.Writer }{sw}, r)
    	}
    
    	var readLastByte bool
    	pos0 := sw.pos
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 19.6K bytes
    - Viewed (0)
  4. src/archive/tar/example_test.go

    	}
    
    	// 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()
    	}
    
    	// Output:
    	// Contents of readme.txt:
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Nov 16 16:54:08 GMT 2017
    - 1.4K bytes
    - Viewed (0)
  5. src/archive/zip/zip_test.go

    	}
    	rc.(*checksumReader).hash = fakeHash32{}
    	for i := 0; i < chunks; i++ {
    		_, err := io.ReadFull(rc, chunk)
    		if err != nil {
    			t.Fatal("read:", err)
    		}
    	}
    	if frag := int(size % chunkSize); frag > 0 {
    		_, err := io.ReadFull(rc, chunk[:frag])
    		if err != nil {
    			t.Fatal("read:", err)
    		}
    	}
    	gotEnd, err := io.ReadAll(rc)
    	if err != nil {
    		t.Fatal("read end:", err)
    	}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Mar 27 18:23:49 GMT 2024
    - 19.5K bytes
    - Viewed (0)
  6. api/go1.12.txt

    pkg go/importer, func ForCompiler(*token.FileSet, string, Lookup) types.Importer
    pkg go/token, method (*File) LineStart(int) Pos
    pkg io, type StringWriter interface { WriteString }
    pkg io, type StringWriter interface, WriteString(string) (int, error)
    pkg log, method (*Logger) Writer() io.Writer
    pkg math/bits, func Add(uint, uint, uint) (uint, uint)
    pkg math/bits, func Add32(uint32, uint32, uint32) (uint32, uint32)
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jan 02 21:21:53 GMT 2019
    - 13.5K bytes
    - Viewed (0)
  7. src/cmd/asm/internal/asm/parse.go

    // license that can be found in the LICENSE file.
    
    // Package asm implements the parser and instruction generator for the assembler.
    // TODO: Split apart?
    package asm
    
    import (
    	"fmt"
    	"io"
    	"log"
    	"os"
    	"strconv"
    	"strings"
    	"text/scanner"
    	"unicode/utf8"
    
    	"cmd/asm/internal/arch"
    	"cmd/asm/internal/flags"
    	"cmd/asm/internal/lex"
    	"cmd/internal/obj"
    	"cmd/internal/obj/arm64"
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Feb 21 14:34:57 GMT 2024
    - 36.9K bytes
    - Viewed (0)
  8. api/go1.1.txt

    pkg syscall (linux-386), const SYS_IOPRIO_SET = 289
    pkg syscall (linux-386), const SYS_IO_CANCEL = 249
    pkg syscall (linux-386), const SYS_IO_DESTROY = 246
    pkg syscall (linux-386), const SYS_IO_GETEVENTS = 247
    pkg syscall (linux-386), const SYS_IO_SETUP = 245
    pkg syscall (linux-386), const SYS_IO_SUBMIT = 248
    pkg syscall (linux-386), const SYS_IPC = 117
    pkg syscall (linux-386), const SYS_KEXEC_LOAD = 283
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Mar 31 20:37:15 GMT 2022
    - 2.6M bytes
    - Viewed (0)
  9. doc/go_spec.html

    type I interface { m() }
    
    func f(y I) {
    	s := y.(string)        // illegal: string does not implement I (missing method m)
    	r := y.(io.Reader)     // r has type io.Reader and the dynamic type of y must implement both I and io.Reader
    	…
    }
    </pre>
    
    <p>
    A type assertion used in an <a href="#Assignment_statements">assignment statement</a> or initialization of the special form
    </p>
    
    HTML
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Apr 26 00:39:16 GMT 2024
    - 279.6K bytes
    - Viewed (0)
  10. src/archive/zip/example_test.go

    	// Create a buffer to write our archive to.
    	buf := new(bytes.Buffer)
    
    	// Create a new zip archive.
    	w := zip.NewWriter(buf)
    
    	// Register a custom Deflate compressor.
    	w.RegisterCompressor(zip.Deflate, func(out io.Writer) (io.WriteCloser, error) {
    		return flate.NewWriter(out, flate.BestCompression)
    	})
    
    	// Proceed to add files to w.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jan 27 00:22:03 GMT 2016
    - 2K bytes
    - Viewed (0)
Back to top