- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for check_cbytes (0.18 sec)
-
src/cmd/cgo/internal/test/test.go
}; struct b11925 { int i; char a[0]; char b[]; }; // issue 12030 void issue12030conv(char *buf, double x) { sprintf(buf, "d=%g", x); } // issue 14838 int check_cbytes(char *b, size_t l) { int i; for (i = 0; i < l; i++) { if (b[i] != i) { return 0; } } return 1; } // issue 17065
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 20 15:50:06 UTC 2024 - 48.5K bytes - Viewed (0) -
test/slicecap.go
y := x[4:] checkString("y[1:]", y[1:]) } { x := bytes checkBytes("x", x) checkBytes("x[5:]", x[5:]) checkBytes("x[five:]", x[five:]) checkBytes("x[5:five]", x[5:five]) checkBytes("x[five:5]", x[five:5]) checkBytes("x[five:five]", x[five:five]) checkBytes("x[1:][2:][2:]", x[1:][2:][2:]) y := x[4:] checkBytes("y[1:]", y[1:]) } { x := ints checkInts("x", x)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 02 13:43:18 UTC 2016 - 1.9K bytes - Viewed (0) -
test/fixedbugs/issue5704.go
mybytes []byte myrunes []rune ) func checkBytes(s []byte, arg string) { if len(s) != 0 { panic("len(" + arg + ") != 0") } if s == nil { panic(arg + " == nil") } } func checkRunes(s []rune, arg string) { if len(s) != 0 { panic("len(" + arg + ") != 0") } if s == nil { panic(arg + " == nil") } } func main() { checkBytes([]byte(""), `[]byte("")`)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 02 13:43:18 UTC 2016 - 1K bytes - Viewed (0) -
src/runtime/memmove_ppc64x.s
// necessary. SUB SRC, TGT, TMP // dest - src CMPU TMP, LEN, CR2 // < len? BC 12, 8, backward // BLT CR2 backward // Copying forward if no overlap. BC 12, 6, checkbytes // BEQ CR1, checkbytes SRDCC $3, DWORDS, OCTWORDS // 64 byte chunks? MOVD $16, IDX16 BEQ lt64gt8 // < 64 bytes // Prepare for moves of 64 bytes at a time. forward64setup: DCBTST (TGT) // prepare data cache
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 21 16:47:45 UTC 2023 - 4.9K bytes - Viewed (0) -
src/test/java/jcifs/tests/PACTest.java
byte[] mac = PacMac.calculateMacArcfourHMACMD5(usage, makeKey(keyb, 23), datab); checkBytes(javaMac, mac); checkBytes(Hex.decode(expect), javaMac); checkBytes(Hex.decode(expect), mac); } @Test public void testPACAESChecksum () throws GeneralSecurityException { String expect = "04EDBD6302A523C038391974";
Registered: Wed Jun 12 15:45:55 UTC 2024 - Last Modified: Sun Oct 01 12:01:17 UTC 2023 - 22.3K bytes - Viewed (0) -
src/math/big/int_test.go
t.Error(err) } } func checkBytes(b []byte) bool { // trim leading zero bytes since Bytes() won't return them // (was issue 12231) for len(b) > 0 && b[0] == 0 { b = b[1:] } b2 := new(Int).SetBytes(b).Bytes() return bytes.Equal(b, b2) } func TestBytes(t *testing.T) { if err := quick.Check(checkBytes, nil); err != nil { t.Error(err) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 18:42:28 UTC 2024 - 58.5K bytes - Viewed (0)