Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for Othman (0.18 sec)

  1. src/bufio/bufio_test.go

    		// ReadSlice, and it's that function that handles
    		// the last byte.
    	}
    
    	// Try all readers with UnreadByte.
    	for rno, read := range readers {
    		// Some input data that is longer than the minimum reader buffer size.
    		const n = 10
    		var buf bytes.Buffer
    		for i := 0; i < n; i++ {
    			buf.WriteString("abcdefg")
    		}
    
    		r := NewReaderSize(&buf, minReadBufferSize)
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Feb 10 18:56:01 GMT 2023
    - 51.5K bytes
    - Viewed (0)
  2. src/cmd/cgo/gcc.go

    								if sdat, err := sect.Data(); err == nil {
    									data := sdat[s.Value-sect.Addr:]
    									strlen := bo.Uint64(data[:8])
    									if strlen > (1<<(uint(p.IntSize*8)-1) - 1) { // greater than MaxInt?
    										fatalf("string literal too big")
    									}
    									strlens[n] = int(strlen)
    								}
    							}
    						}
    						break
    					}
    				}
    			}
    
    			buildStrings()
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Nov 02 16:43:23 GMT 2023
    - 97K bytes
    - Viewed (0)
  3. src/bytes/bytes_test.go

    			if pos != -1 {
    				t.Errorf("IndexByte(%q, 'x') = %v", b1, pos)
    			}
    		}
    	}
    }
    
    // test a small index across all page offsets
    func TestIndexByteSmall(t *testing.T) {
    	b := make([]byte, 5015) // bigger than a page
    	// Make sure we find the correct byte even when straddling a page.
    	for i := 0; i <= len(b)-15; i++ {
    		for j := 0; j < 15; j++ {
    			b[i+j] = byte(100 + j)
    		}
    		for j := 0; j < 15; j++ {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jan 24 16:07:25 GMT 2024
    - 56.2K bytes
    - Viewed (0)
Back to top