Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 38 for empty (0.39 sec)

  1. src/bytes/buffer_test.go

    }
    
    // Empty buf through repeated reads into fub.
    // The initial contents of buf corresponds to the string s.
    func empty(t *testing.T, testname string, buf *Buffer, s string, fub []byte) {
    	check(t, testname+" (empty 1)", buf, s)
    
    	for {
    		n, err := buf.Read(fub)
    		if n == 0 {
    			break
    		}
    		if err != nil {
    			t.Errorf(testname+" (empty 2): err should always be nil, found err == %s", err)
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu Apr 20 01:07:29 GMT 2023
    - 18.1K bytes
    - Viewed (0)
  2. doc/go1.17_spec.html

    </p>
    
    <p>
    A <a href="#Blocks">statement list</a> ends in a terminating statement if the list
    is not empty and its final non-empty statement is terminating.
    </p>
    
    
    <h3 id="Empty_statements">Empty statements</h3>
    
    <p>
    The empty statement does nothing.
    </p>
    
    <pre class="ebnf">
    EmptyStmt = .
    </pre>
    
    
    HTML
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 211.6K bytes
    - Viewed (0)
  3. src/archive/zip/reader_test.go

    				Mode:     0666,
    			},
    			{
    				Name:     "dir/bar",
    				Content:  []byte("foo \r\n"),
    				Modified: time.Date(2011, 12, 8, 10, 4, 50, 0, time.UTC),
    				Mode:     0666,
    			},
    			{
    				Name:     "dir/empty/",
    				Content:  []byte{},
    				Modified: time.Date(2011, 12, 8, 10, 8, 6, 0, time.UTC),
    				Mode:     fs.ModeDir | 0777,
    			},
    			{
    				Name:     "readonly",
    				Content:  []byte("important \r\n"),
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Wed Mar 27 18:23:49 GMT 2024
    - 55.3K bytes
    - Viewed (0)
  4. src/bufio/bufio_test.go

    		b := NewWriterSize(tw, BufSize)
    		b.WriteString("123456789")   // long string, empty buffer:
    		tw.check(t, "", "123456789") // use WriteString
    	}
    	{
    		tw := &teststringwriter{}
    		b := NewWriterSize(tw, BufSize)
    		b.WriteString("abc")
    		tw.check(t, "", "")
    		b.WriteString("123456789012345")      // long string, non-empty buffer
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Feb 10 18:56:01 GMT 2023
    - 51.5K bytes
    - Viewed (0)
  5. src/cmd/cgo/doc.go

    C's union types are represented as a Go byte array with the same length.
    
    Go structs cannot embed fields with C types.
    
    Go code cannot refer to zero-sized fields that occur at the end of
    non-empty C structs. To get the address of such a field (which is the
    only operation you can do with a zero-sized field) you must take the
    address of the struct and add the size of the struct.
    
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Sun Mar 31 09:02:45 GMT 2024
    - 42.1K bytes
    - Viewed (0)
  6. api/go1.5.txt

    pkg go/types, method (*Initializer) String() string
    pkg go/types, method (*Interface) Complete() *Interface
    pkg go/types, method (*Interface) Embedded(int) *Named
    pkg go/types, method (*Interface) Empty() bool
    pkg go/types, method (*Interface) ExplicitMethod(int) *Func
    pkg go/types, method (*Interface) Method(int) *Func
    pkg go/types, method (*Interface) NumEmbeddeds() int
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Jul 30 21:14:09 GMT 2015
    - 46.6K bytes
    - Viewed (0)
  7. src/bytes/bytes.go

    // A nil argument is equivalent to an empty slice.
    func Equal(a, b []byte) bool {
    	// Neither cmd/compile nor gccgo allocates for these string conversions.
    	return string(a) == string(b)
    }
    
    // Compare returns an integer comparing two byte slices lexicographically.
    // The result will be 0 if a == b, -1 if a < b, and +1 if a > b.
    // A nil argument is equivalent to an empty slice.
    func Compare(a, b []byte) int {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Mon Feb 19 19:51:15 GMT 2024
    - 33.8K bytes
    - Viewed (0)
  8. src/cmd/api/testdata/src/issue29837/p/README

    Empty directory for test, see https://golang.org/issues/29837....
    Plain Text
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Mon Mar 04 15:32:18 GMT 2019
    - 62 bytes
    - Viewed (0)
  9. src/bytes/buffer.go

    func (b *Buffer) String() string {
    	if b == nil {
    		// Special case, useful in debugging.
    		return "<nil>"
    	}
    	return string(b.buf[b.off:])
    }
    
    // empty reports whether the unread portion of the buffer is empty.
    func (b *Buffer) empty() bool { return len(b.buf) <= b.off }
    
    // Len returns the number of bytes of the unread portion of the buffer;
    // b.Len() == len(b.Bytes()).
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Oct 13 17:10:31 GMT 2023
    - 15.7K bytes
    - Viewed (0)
  10. src/builtin/builtin.go

    // imaginary parts.
    type complex128 complex128
    
    // string is the set of all strings of 8-bit bytes, conventionally but not
    // necessarily representing UTF-8-encoded text. A string may be empty, but
    // not nil. Values of string type are immutable.
    type string string
    
    // int is a signed integer type that is at least 32 bits in size. It is a
    // distinct type, however, and not an alias for, say, int32.
    type int int
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 12.7K bytes
    - Viewed (0)
Back to top