Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for text_32 (0.07 sec)

  1. src/index/suffixarray/suffixarray.go

    // [Index] creation time is O(N) for N = len(data).
    func New(data []byte) *Index {
    	ix := &Index{data: data}
    	if len(data) <= maxData32 {
    		ix.sa.int32 = make([]int32, len(data))
    		text_32(data, ix.sa.int32)
    	} else {
    		ix.sa.int64 = make([]int64, len(data))
    		text_64(data, ix.sa.int64)
    	}
    	return ix
    }
    
    // writeInt writes an int x to w using buf to buffer the write.
    func writeInt(w io.Writer, buf []byte, x int) error {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  2. src/index/suffixarray/suffixarray_test.go

    func TestNew32(t *testing.T) {
    	test(t, func(x []byte) []int {
    		sa := make([]int32, len(x))
    		text_32(x, sa)
    		out := make([]int, len(sa))
    		for i, v := range sa {
    			out[i] = int(v)
    		}
    		return out
    	})
    }
    
    func TestNew64(t *testing.T) {
    	test(t, func(x []byte) []int {
    		sa := make([]int64, len(x))
    		text_64(x, sa)
    		out := make([]int, len(sa))
    		for i, v := range sa {
    			out[i] = int(v)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  3. platforms/core-runtime/client-services/src/test/groovy/org/gradle/internal/daemon/client/clientinput/DaemonClientInputForwarderTest.groovy

            def text2 = "more text"
    
            when:
            userInputReceiver.readAndForwardStdin(new ReadStdInEvent())
            source << text
    
            then:
            receiveStdin text
    
            when:
            source << text2
            userInputReceiver.readAndForwardStdin(new ReadStdInEvent())
    
            then:
            receiveStdin text2
    
            when:
            forwarder.stop()
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 12:11:05 UTC 2024
    - 5K bytes
    - Viewed (0)
  4. platforms/core-runtime/daemon-services/src/test/groovy/org/gradle/internal/daemon/clientinput/StdInStreamTest.groovy

            def dispatch = Mock(OutputEventListener)
            def stream = new StdInStream(dispatch)
            def text1 = "some text"
            def bytes1 = text1.bytes
            def text2 = "more"
            def bytes2 = text2.bytes
    
            when:
            async {
                start {
                    def buffer = new byte[1024]
    
                    def nread = stream.read(buffer)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 19:51:37 UTC 2024
    - 5.2K bytes
    - Viewed (0)
Back to top