Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 65 for Read (1.8 sec)

  1. src/bytes/example_test.go

    	fmt.Printf("%s\n", b.Next(2))
    	fmt.Printf("%s\n", b.Next(2))
    	fmt.Printf("%s", b.Next(2))
    	// Output:
    	// ab
    	// cd
    	// e
    }
    
    func ExampleBuffer_Read() {
    	var b bytes.Buffer
    	b.Grow(64)
    	b.Write([]byte("abcde"))
    	rdbuf := make([]byte, 1)
    	n, err := b.Read(rdbuf)
    	if err != nil {
    		panic(err)
    	}
    	fmt.Println(n)
    	fmt.Println(b.String())
    	fmt.Println(string(rdbuf))
    	// Output:
    	// 1
    	// bcde
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Mar 04 15:54:40 GMT 2024
    - 15K bytes
    - Viewed (1)
  2. doc/asm.html

    </p>
    
    <p>
    The assembler is based on the input style of the Plan 9 assemblers, which is documented in detail
    <a href="https://9p.io/sys/doc/asm.html">elsewhere</a>.
    If you plan to write assembly language, you should read that document although much of it is Plan 9-specific.
    The current document provides a summary of the syntax and the differences with
    what is explained in that document, and
    HTML
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Tue Nov 28 19:15:27 GMT 2023
    - 36.3K bytes
    - Viewed (0)
  3. src/cmd/cgo/internal/test/issue1435.go

    			if strings.HasPrefix(line, "Pid:\t") {
    				// On loaded systems, it is possible
    				// for a TID to be reused really
    				// quickly. As such, we need to
    				// validate that the thread status
    				// info we just read is a task of the
    				// same process PID as we are
    				// currently running, and not a
    				// recently terminated thread
    				// resurfaced in a different process.
    				if line != expectedProc {
    					break
    				}
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Jul 28 21:31:41 GMT 2023
    - 7.5K bytes
    - Viewed (0)
  4. src/archive/tar/strconv.go

    	}
    	return strings.TrimRight(fmt.Sprintf("%s%d.%09d", sign, secs, nsecs), "0")
    }
    
    // parsePAXRecord parses the input PAX record string into a key-value pair.
    // If parsing is successful, it will slice off the currently read record and
    // return the remainder as r.
    func parsePAXRecord(s string) (k, v, r string, err error) {
    	// The size field ends at the first space.
    	nStr, rest, ok := strings.Cut(s, " ")
    	if !ok {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 01 14:28:42 GMT 2023
    - 9K bytes
    - Viewed (0)
  5. api/go1.16.txt

    pkg syscall (darwin-arm64), const PT_KILL ideal-int
    pkg syscall (darwin-arm64), const PT_READ_D = 2
    pkg syscall (darwin-arm64), const PT_READ_D ideal-int
    pkg syscall (darwin-arm64), const PT_READ_I = 1
    pkg syscall (darwin-arm64), const PT_READ_I ideal-int
    pkg syscall (darwin-arm64), const PT_READ_U = 3
    pkg syscall (darwin-arm64), const PT_READ_U ideal-int
    pkg syscall (darwin-arm64), const PT_SIGEXC = 12
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Fri Dec 02 16:30:41 GMT 2022
    - 479.2K bytes
    - Viewed (0)
  6. api/go1.txt

    pkg io, type ReadCloser interface { Close, Read }
    pkg io, type ReadCloser interface, Close() error
    pkg io, type ReadCloser interface, Read([]uint8) (int, error)
    pkg io, type ReadSeeker interface { Read, Seek }
    pkg io, type ReadSeeker interface, Read([]uint8) (int, error)
    pkg io, type ReadSeeker interface, Seek(int64, int) (int64, error)
    pkg io, type ReadWriteCloser interface { Close, Read, Write }
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Wed Aug 14 18:58:28 GMT 2013
    - 1.7M bytes
    - Viewed (1)
  7. api/go1.18.txt

    pkg crypto/tls, method (*Conn) NetConn() net.Conn
    pkg crypto/tls, type Config struct, PreferServerCipherSuites //deprecated
    pkg crypto/x509, method (*CertPool) Subjects //deprecated
    pkg debug/buildinfo, func Read(io.ReaderAt) (*debug.BuildInfo, error)
    pkg debug/buildinfo, func ReadFile(string) (*debug.BuildInfo, error)
    pkg debug/buildinfo, type BuildInfo = debug.BuildInfo
    pkg debug/dwarf, type BasicType struct, DataBitOffset int64
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Fri Feb 17 20:31:46 GMT 2023
    - 13K bytes
    - Viewed (0)
  8. api/go1.8.txt

    pkg net/http, var ErrAbortHandler error
    pkg net/http, var ErrServerClosed error
    pkg net/http, var NoBody noBody
    pkg net/mail, func ParseDate(string) (time.Time, error)
    pkg net, method (*Buffers) Read([]uint8) (int, error)
    pkg net, method (*Buffers) WriteTo(io.Writer) (int64, error)
    pkg net, method (*Resolver) LookupAddr(context.Context, string) ([]string, error)
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Wed Dec 21 05:25:57 GMT 2016
    - 16.3K bytes
    - Viewed (0)
  9. doc/godebug.md

    denial of service attacks, this setting and default was backported to Go
    1.19.13, Go 1.20.8, and Go 1.21.1.
    
    Go 1.22 made it an error for a request or response read by a net/http
    client or server to have an empty Content-Length header.
    This behavior is controlled by the `httplaxcontentlength` setting.
    
    Go 1.22 changed the behavior of ServeMux to accept extended
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Tue Apr 16 17:29:58 GMT 2024
    - 13.5K bytes
    - Viewed (0)
  10. src/archive/tar/writer.go

    	}
    	n, err := tw.curr.Write(b)
    	if err != nil && err != ErrWriteTooLong {
    		tw.err = err
    	}
    	return n, err
    }
    
    // readFrom populates the content of the current file by reading from r.
    // The bytes read must match the number of remaining bytes in the current file.
    //
    // If the current file is sparse and r is an io.ReadSeeker,
    // then readFrom uses Seek to skip past holes defined in Header.SparseHoles,
    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)
Back to top