Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 112 for Dst_len (2.04 sec)

  1. src/syscall/js/js_test.go

    			src := make([]byte, tt.srcLen)
    			if tt.srcLen >= 2 {
    				src[1] = 42
    			}
    			dst := js.Global().Get("Uint8Array").New(tt.dstLen)
    
    			if got, want := js.CopyBytesToJS(dst, src), tt.copyLen; got != want {
    				t.Errorf("copied %d, want %d", got, want)
    			}
    			if tt.dstLen >= 2 {
    				if got, want := dst.Index(1).Int(), 42; got != want {
    					t.Errorf("got %d, want %d", got, want)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 19 14:35:26 UTC 2024
    - 17.7K bytes
    - Viewed (0)
  2. maven-artifact/src/main/java/org/apache/maven/artifact/ArtifactUtils.java

            return groupId + ":" + artifactId + ":" + version;
        }
    
        private static void notBlank(String str, String message) {
            final int strLen = str != null ? str.length() : 0;
            if (strLen > 0) {
                for (int i = 0; i < strLen; i++) {
                    if (!Character.isWhitespace(str.charAt(i))) {
                        return;
                    }
                }
            }
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Thu Apr 06 08:51:18 UTC 2023
    - 6.9K bytes
    - Viewed (0)
  3. common/scripts/kind_provisioner.sh

    from ipaddress import ip_network, IPv6Network;
    from itertools import islice;
    
    net = ip_network('$CIDR')
    net_bits = 128 if type(net) == IPv6Network else 32;
    net_len = pow(2, net_bits - net.prefixlen)
    start, end = int(net_len / 4 * 3), net_len
    if net_len > 2000:
      start, end = 1000, 2000
    
    [print(str(ip) + "/" + str(ip.max_prefixlen)) for ip in islice(ip_network('$CIDR').hosts(), start, end)]
    EOF
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 19:12:55 UTC 2024
    - 17.3K bytes
    - Viewed (0)
  4. src/cmd/link/internal/loader/symbolbuilder.go

    	strLen := int64(len(str))
    	if off+strLen > int64(len(sb.data)) {
    		panic("attempt to write past end of buffer")
    	}
    	copy(sb.data[off:off+strLen], str)
    	return off + strLen
    }
    
    // AddCStringAt adds str plus a null terminating byte.
    func (sb *SymbolBuilder) AddCStringAt(off int64, str string) int64 {
    	strLen := int64(len(str))
    	if off+strLen+1 > int64(len(sb.data)) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 15:25:19 UTC 2023
    - 13.9K bytes
    - Viewed (0)
  5. src/vendor/golang.org/x/net/http2/hpack/hpack.go

    		// and because the string is not indexed the error will not
    		// affect the decoding state.
    		return u, nil, ErrStringLength
    	}
    	if uint64(len(p)) < strLen {
    		return u, p, errNeedMore
    	}
    	u.isHuff = isHuff
    	u.b = p[:strLen]
    	return u, p[strLen:], nil
    }
    
    type undecodedString struct {
    	isHuff bool
    	b      []byte
    }
    
    func (d *Decoder) decodeString(u undecodedString) (string, error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 14 18:30:34 UTC 2023
    - 14.7K bytes
    - Viewed (0)
  6. src/internal/bytealg/indexbyte_s390x.s

    	BR	indexbytebody<>(SB)
    
    TEXT ·IndexByteString(SB),NOSPLIT|NOFRAME,$0-32
    	MOVD	s_base+0(FP), R3// s_base => R3
    	MOVD	s_len+8(FP), R4 // s_len => R4
    	MOVBZ	c+16(FP), R5    // c => R5
    	MOVD	$ret+24(FP), R2 // &ret => R9
    	BR	indexbytebody<>(SB)
    
    // input:
    // R3: s
    // R4: s_len
    // R5: c -- byte sought
    // R2: &ret -- address to put index into
    TEXT indexbytebody<>(SB),NOSPLIT|NOFRAME,$0
    	CMPBEQ	R4, $0, notfound
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 08 20:52:47 UTC 2018
    - 2.5K bytes
    - Viewed (0)
  7. src/cmd/cgo/internal/test/callback_c.c

    {
    	extern int goReturnVal(void);
    	return goReturnVal();
    }
    
    void
    callGoWithString(void)
    {
    	extern void goWithString(GoString);
    	const char *str = "string passed from C to Go";
    	goWithString((GoString){str, strlen(str)});
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 12:00:02 UTC 2023
    - 933 bytes
    - Viewed (0)
  8. src/runtime/sys_plan9_arm.s

    	MOVW	g_m(g), R0
    	MOVW	(m_mOS+mOS_errstr)(R0), R1
    	MOVW	R1, ret_base+0(FP)
    	MOVW	$ERRMAX, R2
    	MOVW	R2, ret_len+4(FP)
    	MOVW    $SYS_ERRSTR, R0
    	SWI	$0
    	MOVW	R1, R2
    	MOVBU	0(R2), R0
    	CMP	$0, R0
    	BEQ	3(PC)
    	ADD	$1, R2
    	B	-4(PC)
    	SUB	R1, R2
    	MOVW	R2, ret_len+4(FP)
    	RET
    
    TEXT ·publicationBarrier(SB),NOSPLIT|NOFRAME,$0-0
    	B	runtime·armPublicationBarrier(SB)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 29 14:15:04 UTC 2021
    - 7K bytes
    - Viewed (0)
  9. tensorflow/c/c_test.c

        return 1;
      }
    
      char file_name[100];
      time_t t = time(NULL);
      snprintf(file_name, sizeof(file_name), "test-%d-%ld.txt", getpid(), t);
    
      size_t length = 2 + strlen(path) + strlen(file_name);
      char* full_path = malloc(length);
      snprintf(full_path, length, "%s/%s", path, file_name);
    
      TF_WritableFileHandle* h;
      TF_Status* status = TF_NewStatus();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 20:50:35 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  10. src/cmd/cgo/internal/testerrors/testdata/issue50710.go

    // Copyright 2022 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package main
    
    // size_t StrLen(_GoString_ s) {
    // 	return _GoStringLen(s);
    // }
    import "C"
    
    func main() {
    	C.StrLen1() // ERROR HERE
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 295 bytes
    - Viewed (0)
Back to top