Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 46 for field (0.18 sec)

  1. doc/go_spec.html

    and <code>T</code> itself may not be
    a pointer type. The unqualified type name acts as the field name.
    </p>
    
    <pre>
    // A struct with four embedded fields of types T1, *T2, P.T3 and *P.T4
    struct {
    	T1        // field name is T1
    	*T2       // field name is T2
    	P.T3      // field name is T3
    	*P.T4     // field name is T4
    	x, y int  // field names are x and y
    }
    </pre>
    
    <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)
  2. src/bytes/bytes.go

    // Fields interprets s as a sequence of UTF-8-encoded code points.
    // It splits the slice s around each instance of one or more consecutive white space
    // characters, as defined by unicode.IsSpace, returning a slice of subslices of s or an
    // empty slice if s contains only white space.
    func Fields(s []byte) [][]byte {
    	// First count the fields.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Feb 19 19:51:15 GMT 2024
    - 33.8K bytes
    - Viewed (0)
  3. src/archive/tar/writer.go

    				spb = append(spb, spHdr[:]...)
    			}
    
    			// Update size fields in the header block.
    			realSize := hdr.Size
    			hdr.Size = 0 // Encoded size; does not account for encoded sparse map
    			for _, s := range spd {
    				hdr.Size += s.Length
    			}
    			copy(blk.V7().Size(), zeroBlock[:]) // Reset field
    			f.formatNumeric(blk.V7().Size(), hdr.Size)
    			f.formatNumeric(blk.GNU().RealSize(), realSize)
    		}
    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/zip/zip_test.go

    		t.Skip("slow test; skipping")
    	}
    	t.Parallel()
    	// Test a zip file with uncompressed size 0xFFFFFFFF.
    	// That's the magic marker for a 64-bit file, so even though
    	// it fits in a 32-bit field we must use the 64-bit field.
    	// Go 1.5 and earlier got this wrong,
    	// writing an invalid zip file.
    	const size = 1<<32 - 1 - int64(len("END\n")) // before the "END\n" part
    	buf := testZip64(t, size)
    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)
  5. src/archive/tar/format.go

    	default:
    		panic("invalid format")
    	}
    
    	// Update checksum.
    	// This field is special in that it is terminated by a NULL then space.
    	var f formatter
    	field := b.toV7().chksum()
    	chksum, _ := b.computeChecksum() // Possible values are 256..128776
    	f.formatOctal(field[:7], chksum) // Never fails since 128776 < 262143
    	field[7] = ' '
    }
    
    // computeChecksum computes the checksum for the header block.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 11.3K bytes
    - Viewed (0)
  6. src/cmd/asm/internal/asm/parse.go

    		return
    	}
    	// Expect (SB), (FP), (PC), or (SP)
    	p.get('(')
    	reg := p.get(scanner.Ident).String()
    	p.get(')')
    	p.setPseudoRegister(a, reg, isStatic, prefix)
    }
    
    // setPseudoRegister sets the NAME field of addr for a pseudo-register reference such as (SB).
    func (p *Parser) setPseudoRegister(addr *obj.Addr, reg string, isStatic bool, prefix rune) {
    	if addr.Reg != 0 {
    		p.errorf("internal error: reg %s already set in pseudo", reg)
    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)
  7. src/archive/zip/struct.go

    A note about ZIP64:
    
    To be backwards compatible the FileHeader has both 32 and 64 bit Size
    fields. The 64 bit fields will always contain the correct value and
    for normal archives both fields will be the same. For files requiring
    the ZIP64 format the 32 bit fields will be 0xffffffff and the 64 bit
    fields must be used instead.
    
    [ZIP specification]: https://support.pkware.com/pkzip/appnote
    */
    package zip
    
    import (
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 12.1K bytes
    - Viewed (0)
  8. PATENTS

    infringement, or inducement of patent infringement, then any patent
    rights granted to you under this License for this implementation of Go
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Dec 06 21:31:59 GMT 2010
    - 1.3K bytes
    - Viewed (0)
  9. src/bytes/reader_test.go

    			defer wg.Done()
    			var buf [1]byte
    			r.ReadAt(buf[:], int64(i))
    		}(i)
    	}
    	wg.Wait()
    }
    
    func TestEmptyReaderConcurrent(t *testing.T) {
    	// Test for the race detector, to verify a Read that doesn't yield any bytes
    	// is okay to use from multiple goroutines. This was our historic behavior.
    	// See golang.org/issue/7856
    	r := NewReader([]byte{})
    	var wg sync.WaitGroup
    	for i := 0; i < 5; i++ {
    		wg.Add(2)
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Dec 13 18:45:54 GMT 2021
    - 8K bytes
    - Viewed (0)
  10. src/builtin/builtin.go

    type any = interface{}
    
    // comparable is an interface that is implemented by all comparable types
    // (booleans, numbers, strings, pointers, channels, arrays of comparable types,
    // structs whose fields are all comparable types).
    // The comparable interface may only be used as a type parameter constraint,
    // not as the type of a variable.
    type comparable interface{ comparable }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 12.7K bytes
    - Viewed (0)
Back to top