- Sort Score
- Result 10 results
- Languages All
Results 101 - 110 of 1,536 for Uncore (0.04 sec)
-
guava-tests/benchmark/com/google/common/io/BaseEncodingBenchmark.java
encodingInputs[i] = new byte[n]; rng.nextBytes(encodingInputs[i]); decodingInputs[i] = encoding.encoding.encode(encodingInputs[i]); } } @Benchmark public int encode(int reps) { int tmp = 0; for (int i = 0; i < reps; i++) { tmp += System.identityHashCode(encoding.encoding.encode(encodingInputs[i & INPUTS_MASK])); } return tmp; } @Benchmark public int decode(int reps) {
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 3.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/nego/PreauthIntegrityNegotiateContextTest.java
@Test @DisplayName("Should encode multiple hash algorithms with salt") void testEncodeMultipleHashAlgosWithSalt() { int[] hashAlgos = { 0x01, 0x02, 0x03 }; byte[] salt = { 0x0A, 0x0B }; PreauthIntegrityNegotiateContext context = new PreauthIntegrityNegotiateContext(mockConfig, hashAlgos, salt); int bytesWritten = context.encode(buffer, 0);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 34K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/session/Smb2SessionSetupRequestTest.java
// Given request.setSessionBinding(true); byte[] buffer = new byte[512]; int headerStart = 50; // Encode the full message to set headerStart request.encode(buffer, headerStart); // Then - verify the body was written correctly int bodyOffset = headerStart + Smb2Constants.SMB2_HEADER_LENGTH;Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 21.2K bytes - Viewed (0) -
cmd/storage-datatypes_test.go
"testing" "time" "github.com/tinylib/msgp/msgp" ) func BenchmarkDecodeVolInfoMsgp(b *testing.B) { v := VolInfo{ Name: "uuid", Created: time.Now(), } var buf bytes.Buffer msgp.Encode(&buf, &v) rd := msgp.NewEndlessReader(buf.Bytes(), b) dc := msgp.NewReader(rd) b.Log("Size:", buf.Len(), "bytes") b.SetBytes(1) b.ReportAllocs() for b.Loop() { err := v.DecodeMsg(dc) if err != nil {
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 9.1K bytes - Viewed (0) -
src/main/java/jcifs/util/Strings.java
* * @param str the string to encode * @return the string as bytes (UTF16-LE) */ public static byte[] getUNIBytes(final String str) { return getBytes(str, UNI_ENCODING); } /** * Encodes a string into ASCII bytes. * * @param str the string to encode * @return the string as bytes (ASCII) */Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 6.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileEndOfFileInformationTest.java
@Test @DisplayName("Test multiple encode operations") void testMultipleEncodeOperations() { long endOfFile = 0x1234567890ABCDEFL; FileEndOfFileInformation info = new FileEndOfFileInformation(endOfFile); // Encode multiple times to verify consistency byte[] buffer1 = new byte[8]; byte[] buffer2 = new byte[8]; int bytes1 = info.encode(buffer1, 0);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.9K bytes - Viewed (0) -
src/test/java/jcifs/smb1/dcerpc/ndr/NdrShortTest.java
} /** * Verify that encode writes the correct little-endian sequence * to the buffer and that alignment is respected. */ @Test void encodeWritesCorrectBytesAndAlignment() throws NdrException { NdrShort ns = new NdrShort(0xABCD); // value & 0xFF => 0xCD buf.reset(); int startIndex = buf.getIndex(); ns.encode(buf);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.1K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/rpcTest.java
// But only test the non-deferred parts to avoid field mocking issues // When: Trying to encode (may throw exception due to deferred buffer) // Then: Should at least call the basic encoding methods before hitting deferred assertThrows(Exception.class, () -> { unicodeString.encode(mockNdrBuffer); }, "Should encounter issue with deferred buffer access");Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.5K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/ndr/NdrObjectTest.java
} /** * Test case for the encode method. * Verifies that the encode method of a concrete implementation is called * and interacts with the NdrBuffer as expected. * @throws NdrException if encoding fails. */ @Test void testEncode() throws NdrException { // When ndrObject.encode(mockBuffer); // ThenRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3.4K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/Credentials.kt
* limitations under the License. */ package okhttp3 import java.nio.charset.Charset import kotlin.text.Charsets.ISO_8859_1 import okio.ByteString.Companion.encode /** Factory for HTTP authorization credentials. */ object Credentials { /** Returns an auth credential for the Basic scheme. */ @JvmStatic @JvmOverloads fun basic( username: String,Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Fri Dec 27 13:39:56 UTC 2024 - 1.1K bytes - Viewed (0)