Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for RuneLen (0.08 sec)

  1. api/go1.23.txt

    pkg syscall (windows-amd64), const WSAENOPROTOOPT Errno #62254
    pkg syscall, const EBADMSG Errno #67998
    pkg syscall, const EPROTO Errno #67998
    pkg unicode/utf16, func RuneLen(int32) int #44940
    pkg unique, func Make[$0 comparable]($0) Handle[$0] #62483
    pkg unique, method (Handle[$0]) Value() $0 #62483
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Tue Jun 25 17:08:08 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  2. src/bytes/buffer_test.go

    		buf.Reset()
    		for i := 0; i < n; i++ {
    			buf.WriteByte('x')
    		}
    	}
    }
    
    func BenchmarkWriteRune(b *testing.B) {
    	const n = 4 << 10
    	const r = '☺'
    	b.SetBytes(int64(n * utf8.RuneLen(r)))
    	buf := NewBuffer(make([]byte, n*utf8.UTFMax))
    	for i := 0; i < b.N; i++ {
    		buf.Reset()
    		for i := 0; i < n; i++ {
    			buf.WriteRune(r)
    		}
    	}
    }
    
    // From Issue 5154.
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Tue Sep 03 20:55:15 UTC 2024
    - 18.6K bytes
    - Viewed (0)
Back to top