Search Options

Results per page
Sort
Preferred Languages
Advance

Results 161 - 164 of 164 for uint8 (0.62 sec)

  1. src/bufio/scan.go

    			s.end -= s.start
    			s.start = 0
    		}
    		// Is the buffer full? If so, resize.
    		if s.end == len(s.buf) {
    			// Guarantee no overflow in the multiplication below.
    			const maxInt = int(^uint(0) >> 1)
    			if len(s.buf) >= s.maxTokenSize || len(s.buf) > maxInt/2 {
    				s.setErr(ErrTooLong)
    				return false
    			}
    			newSize := len(s.buf) * 2
    			if newSize == 0 {
    				newSize = startBufSize
    			}
    Registered: Tue Dec 30 11:13:12 UTC 2025
    - Last Modified: Wed May 21 18:05:26 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  2. src/bytes/buffer_test.go

    	defer func() {
    		if err := recover(); err != ErrTooLarge {
    			t.Errorf("after too-large Grow, recover() = %v; want %v", err, ErrTooLarge)
    		}
    	}()
    
    	buf := NewBuffer(make([]byte, 1))
    	const maxInt = int(^uint(0) >> 1)
    	buf.Grow(maxInt)
    }
    
    // Was a bug: used to give EOF reading empty slice at EOF.
    func TestReadEmptyAtEOF(t *testing.T) {
    	b := new(Buffer)
    	slice := make([]byte, 0)
    	n, err := b.Read(slice)
    Registered: Tue Dec 30 11:13:12 UTC 2025
    - Last Modified: Fri Nov 14 19:01:17 UTC 2025
    - 19.4K bytes
    - Viewed (0)
  3. src/bytes/bytes_test.go

    			}
    		}
    	}
    
    	const maxInt = int(^uint(0) >> 1)
    
    	runTestCases("", []testCase{
    		0: {"--", -2147483647, "negative"},
    		1: {"", maxInt, ""},
    		2: {"-", 10, ""},
    		3: {"gopher", 0, ""},
    		4: {"-", -1, "negative"},
    		5: {"--", -102, "negative"},
    		6: {string(make([]byte, 255)), int((^uint(0))/255 + 1), "overflow"},
    	})
    
    	const is64Bit = 1<<(^uintptr(0)>>63)/2 != 0
    Registered: Tue Dec 30 11:13:12 UTC 2025
    - Last Modified: Tue Dec 23 23:54:14 UTC 2025
    - 62.9K bytes
    - Viewed (0)
  4. cmd/testdata/xl-meta-merge.zip

    TïRGaIgn¸Anfï ² @a %`NC\U KluÖEjŠ Ylèû ¾>_ceòGs†r—ªˆ°ˆ B¼ûG†ƒ. ¸WñeLKVgn~g Uexø¨ [iVoRª ³ ghyßn¨y^mPiaïŠser|çå=¾ KE eò ˆÜa¢JUûvìŽf_ j¼^ï tiTkmòosŒiVtJy_@~Çå|G\m†`ñZ¾o{{Vû ?¾ZïKHòinOœ¢{jã:UDyy[ÚóbDˆCväêåk}Dym|<rGRý¨GwÈohWKnMªLB¼"iI²,% Œ; „vDoFûHewŠA{qmýGzã R¾Ùîñþ,ÏutSQTá>ï|¾N]n|çlM®‰sj…—†Yp¤~iÄ»two\Edtv}Ö~EE~m¬¸û|w\OF îo¾ ïhN ilñL¥zqK/t¢Sxst·ttcˆ¯ b_2ú m þ WlONl]FeIˆïTryrYT÷ETNIº W_c¢v`G eZ› „ Wls~`mDIÕ BsD}^yL5¤ÌFNLG ³¹si@xÃæÀ{[÷·ugòS{—YÐGFiÜy\‘~jC|»kKÕvID­8 + èepéì^˜»¹† ixÄãynï\º x]Ti|ôMV ëvÜø5]ï¾Xle¦BñpPow]xM...
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Mar 08 17:50:48 UTC 2024
    - 30.2K bytes
    - Viewed (0)
Back to top