Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 32 for blocks (0.3 sec)

  1. doc/go1.17_spec.html

    </pre>
    
    
    <h2 id="Blocks">Blocks</h2>
    
    <p>
    A <i>block</i> is a possibly empty sequence of declarations and statements
    within matching brace brackets.
    </p>
    
    <pre class="ebnf">
    Block = "{" StatementList "}" .
    StatementList = { Statement ";" } .
    </pre>
    
    <p>
    In addition to explicit blocks in the source code, there are implicit blocks:
    </p>
    
    <ol>
    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)
  2. api/go1.13.txt

    pkg syscall (netbsd-arm64), const LOCK_EX = 2
    pkg syscall (netbsd-arm64), const LOCK_EX ideal-int
    pkg syscall (netbsd-arm64), const LOCK_NB = 4
    pkg syscall (netbsd-arm64), const LOCK_NB ideal-int
    pkg syscall (netbsd-arm64), const LOCK_SH = 1
    pkg syscall (netbsd-arm64), const LOCK_SH ideal-int
    pkg syscall (netbsd-arm64), const LOCK_UN = 8
    pkg syscall (netbsd-arm64), const LOCK_UN ideal-int
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Aug 08 18:44:16 GMT 2019
    - 452.6K bytes
    - Viewed (0)
  3. src/bytes/buffer_test.go

    			b.Write(buf[:1])
    		}
    	}
    }
    
    func BenchmarkBufferWriteBlock(b *testing.B) {
    	block := make([]byte, 1024)
    	for _, n := range []int{1 << 12, 1 << 16, 1 << 20} {
    		b.Run(fmt.Sprintf("N%d", n), func(b *testing.B) {
    			b.ReportAllocs()
    			for i := 0; i < b.N; i++ {
    				var bb Buffer
    				for bb.Len() < n {
    					bb.Write(block)
    				}
    			}
    		})
    	}
    }
    
    func BenchmarkBufferAppendNoCopy(b *testing.B) {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Apr 26 13:31:36 GMT 2024
    - 18.6K bytes
    - Viewed (0)
  4. api/go1.5.txt

    pkg crypto, type Decrypter interface, Public() PublicKey
    pkg crypto, type DecrypterOpts interface {}
    pkg crypto/cipher, func NewGCMWithNonceSize(Block, int) (AEAD, error)
    pkg crypto/elliptic, type CurveParams struct, Name string
    pkg crypto/rsa, method (*PrivateKey) Decrypt(io.Reader, []uint8, crypto.DecrypterOpts) ([]uint8, error)
    pkg crypto/rsa, type OAEPOptions struct
    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)
  5. src/archive/tar/fuzz_test.go

    		if err := w.Close(); err != nil {
    			t.Fatalf("Unable to write archive: %s", err)
    		}
    
    		// TODO: We may want to check if the archive roundtrips. This would require
    		// taking into account addition of the two zero trailer blocks that Writer.Close
    		// appends.
    	})
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Jan 13 18:06:33 GMT 2022
    - 2.2K bytes
    - Viewed (0)
  6. doc/go_spec.html

    </p>
    
    <h2 id="Blocks">Blocks</h2>
    
    <p>
    A <i>block</i> is a possibly empty sequence of declarations and statements
    within matching brace brackets.
    </p>
    
    <pre class="ebnf">
    Block = "{" StatementList "}" .
    StatementList = { Statement ";" } .
    </pre>
    
    <p>
    In addition to explicit blocks in the source code, there are implicit blocks:
    </p>
    
    <ol>
    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)
  7. src/archive/tar/writer.go

    					sa.IsExtended()[0] = 1
    				}
    				return sp
    			}
    			sp2 := formatSPD(spd, blk.GNU().Sparse())
    			for len(sp2) > 0 {
    				var spHdr block
    				sp2 = formatSPD(sp2, spHdr.Sparse())
    				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
    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)
  8. src/archive/tar/reader_test.go

    		// Write the initial GNU header.
    		var blk block
    		gnu := blk.toGNU()
    		sparse := gnu.sparse()
    		copy(gnu.realSize(), size)
    		sps = populateSparseMap(sparse, sps)
    		if format != FormatUnknown {
    			blk.setFormat(format)
    		}
    		out = append(out, blk[:]...)
    
    		// Write extended sparse blocks.
    		for len(sps) > 0 {
    			var blk block
    			sps = populateSparseMap(blk.toSparse(), sps)
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Nov 21 21:14:38 GMT 2022
    - 47.1K bytes
    - Viewed (0)
  9. api/go1.2.txt

    pkg syscall (freebsd-arm), type Flock_t struct
    pkg syscall (freebsd-arm), type Flock_t struct, Len int64
    pkg syscall (freebsd-arm), type Flock_t struct, Pid int32
    pkg syscall (freebsd-arm), type Flock_t struct, Start int64
    pkg syscall (freebsd-arm), type Flock_t struct, Sysid int32
    pkg syscall (freebsd-arm), type Flock_t struct, Type int16
    pkg syscall (freebsd-arm), type Flock_t struct, Whence int16
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 18 04:36:59 GMT 2013
    - 1.9M bytes
    - Viewed (2)
  10. src/archive/tar/reader.go

    	return paxHdrs, nil
    }
    
    // readHeader reads the next block header and assumes that the underlying reader
    // is already aligned to a block boundary. It returns the raw block of the
    // header in case further processing is required.
    //
    // The err will be set to io.EOF only when one of the following occurs:
    //   - Exactly 0 bytes are read and EOF is hit.
    //   - Exactly 1 block of zeros is read and EOF is hit.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 08 01:59:14 GMT 2024
    - 26.8K bytes
    - Viewed (0)
Back to top