- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 364 for maskOf (0.15 sec)
-
src/net/netip/netip_test.go
masked: Prefix{}, }, } for _, test := range tests { t.Run(test.prefix.String(), func(t *testing.T) { got := test.prefix.Masked() if got != test.masked { t.Errorf("Masked=%s, want %s", got, test.masked) } }) } } func TestPrefix(t *testing.T) { tests := []struct { prefix string ip Addr bits int str string
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 17:10:01 UTC 2024 - 54.3K bytes - Viewed (0) -
pkg/registry/core/service/ipallocator/ipallocator.go
base := subnet.Masked().Addr() bytes := base.AsSlice() // get all the host bits from the subnet n := 8*len(bytes) - subnet.Bits() // set all the host bits to 1 for i := len(bytes) - 1; i >= 0 && n > 0; i-- { if n >= 8 { bytes[i] = 0xff n -= 8 } else { mask := ^uint8(0) >> (8 - n) bytes[i] |= mask break } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Oct 31 21:05:04 UTC 2023 - 17K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/ws/WebSocketReaderTest.kt
.isEqualTo("Client-sent frames must be masked.") } } @Test fun serverSentFramesMustNotBeMasked() { data.write("8180".decodeHex()) assertFailsWith<ProtocolException> { clientReader.processNextFrame() }.also { expected -> assertThat(expected.message) .isEqualTo("Server-sent frames must not be masked.") } } @Test fun controlFramePayloadMax() {
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 14.4K bytes - Viewed (0) -
src/crypto/cipher/gcm.go
var mask [gcmBlockSize]byte for len(in) >= gcmBlockSize { g.cipher.Encrypt(mask[:], counter[:]) gcmInc32(counter) subtle.XORBytes(out, in, mask[:]) out = out[gcmBlockSize:] in = in[gcmBlockSize:] } if len(in) > 0 { g.cipher.Encrypt(mask[:], counter[:]) gcmInc32(counter) subtle.XORBytes(out, in, mask[:]) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 13 18:57:38 UTC 2024 - 13.7K bytes - Viewed (0) -
src/runtime/mbitmap.go
// the address of the first word referenced by mask. addr uintptr // mask is a bitmask where each bit corresponds to pointer-words after addr. // Bit 0 is the pointer-word at addr, Bit 1 is the next word, and so on. // If a bit is 1, then there is a pointer at that word. // nextFast and next mask out bits in this mask as their pointers are processed. mask uintptr
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 00:18:55 UTC 2024 - 60K bytes - Viewed (0) -
src/runtime/signal_unix.go
maskUpdatedChan = make(chan struct{}) disableSigChan = make(chan uint32) enableSigChan = make(chan uint32) go func() { // Signal masks are per-thread, so make sure this goroutine stays on one // thread. LockOSThread() defer UnlockOSThread() // The sigBlocked mask contains the signals not active for os/signal, // initially all signals except the essential. When signal.Notify()/Stop is called,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 10 16:04:54 UTC 2024 - 45K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/CompactHashing.java
static int getHashPrefix(int value, int mask) { return value & ~mask; } /** Returns the index, or 0 if the entry is "null". */ static int getNext(int entry, int mask) { return entry & mask; } /** Returns a new value combining the prefix and suffix using the given mask. */ static int maskCombine(int prefix, int suffix, int mask) { return (prefix & ~mask) | (suffix & mask); } static int remove(
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Aug 02 21:41:22 UTC 2021 - 7.1K bytes - Viewed (0) -
src/cmd/cgo/internal/test/sigprocmask.c
#include <time.h> #include <unistd.h> extern void IntoGoAndBack(); int CheckBlocked() { sigset_t mask; sigprocmask(SIG_BLOCK, NULL, &mask); return sigismember(&mask, SIGIO); } static void* sigthreadfunc(void* unused) { sigset_t mask; sigemptyset(&mask); sigaddset(&mask, SIGIO); sigprocmask(SIG_BLOCK, &mask, NULL); IntoGoAndBack(); return NULL; } int RunSigThread() { int tries; pthread_t thread;
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 12:00:02 UTC 2023 - 1K bytes - Viewed (0) -
src/runtime/os_linux_mips64x.go
//go:nosplit //go:nowritebarrierrec func sigaddset(mask *sigset, i int) { (*mask)[(i-1)/64] |= 1 << ((uint32(i) - 1) & 63) } func sigdelset(mask *sigset, i int) { (*mask)[(i-1)/64] &^= 1 << ((uint32(i) - 1) & 63) } //go:nosplit func sigfillset(mask *[2]uint64) { (*mask)[0], (*mask)[1] = ^uint64(0), ^uint64(0)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Dec 05 20:34:30 UTC 2023 - 996 bytes - Viewed (0) -
src/runtime/os_linux_mipsx.go
//go:nosplit //go:nowritebarrierrec func sigaddset(mask *sigset, i int) { (*mask)[(i-1)/32] |= 1 << ((uint32(i) - 1) & 31) } func sigdelset(mask *sigset, i int) { (*mask)[(i-1)/32] &^= 1 << ((uint32(i) - 1) & 31) } //go:nosplit func sigfillset(mask *[4]uint32) { (*mask)[0], (*mask)[1], (*mask)[2], (*mask)[3] = ^uint32(0), ^uint32(0), ^uint32(0), ^uint32(0)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Dec 05 20:34:30 UTC 2023 - 987 bytes - Viewed (0)