- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 279 for metabytes (0.04 sec)
-
src/test/java/jcifs/smb1/smb1/NetShareEnumResponseTest.java
System.arraycopy("SHARE1".getBytes(StandardCharsets.US_ASCII), 0, data, 0, 6); data[14] = 0x00; data[15] = 0x00; // type = 0 data[16] = 40; data[17] = 0; data[18] = 0; data[19] = 0; // remark offset // Entry 2: IPC$, type 3 (IPC), remark "Inter-Process Communication" System.arraycopy("IPC$".getBytes(StandardCharsets.US_ASCII), 0, data, 20, 4);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.4K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbComNegotiateResponseTest.java
response.byteCount = 15; // 8 bytes key + 6 bytes "DOMAIN" + 1 null terminator // Prepare byte array byte[] encryptionKey = "12345678".getBytes(); byte[] domainNameBytes = "DOMAIN".getBytes(ServerMessageBlock.OEM_ENCODING); ByteBuffer buffer = ByteBuffer.allocate(response.byteCount); buffer.put(encryptionKey); buffer.put(domainNameBytes);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/base/CharsetsTest.java
@GwtIncompatible // Non-UTF-8 Charset public void testWhyUsAsciiIsDangerous() { byte[] b1 = "朝日新聞".getBytes(Charsets.US_ASCII); byte[] b2 = "聞朝日新".getBytes(Charsets.US_ASCII); byte[] b3 = "????".getBytes(Charsets.US_ASCII); byte[] b4 = "ニュース".getBytes(Charsets.US_ASCII); byte[] b5 = "スューー".getBytes(Charsets.US_ASCII); // Assert they are all equal (using the transitive property) assertTrue(Arrays.equals(b1, b2));
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 2.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileRenameInformation2Test.java
// Verify replaceIfExists flag assertEquals(1, buffer[0]); // Verify file name length int nameLength = SMBUtil.readInt4(buffer, 16); assertEquals(fileName.getBytes(StandardCharsets.UTF_16LE).length, nameLength); // Verify file name byte[] nameBytes = new byte[nameLength]; System.arraycopy(buffer, 20, nameBytes, 0, nameLength);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.3K bytes - Viewed (0) -
src/main/java/jcifs/util/Strings.java
* @param encoding the character encoding to use * @return encoded byte array, or empty array if str is null */ public static byte[] getBytes(final String str, final Charset encoding) { if (str == null) { return new byte[0]; } return str.getBytes(encoding); } /** * Encodes a string into UTF-16LE (Unicode Little Endian) bytes. * * @param str the string to encode
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 6.5K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/timer/SystemMonitorTarget.java
buf.append("\"memory\":{"); buf.append("\"heap\":{"); append(buf, "used", () -> mem.getHeapUsed().getBytes()).append(','); append(buf, "committed", () -> mem.getHeapCommitted().getBytes()).append(','); append(buf, "max", () -> mem.getHeapMax().getBytes()).append(','); append(buf, "percent", () -> mem.getHeapUsedPercent()); buf.append("},"); buf.append("\"non_heap\":{");
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Jul 17 08:28:31 UTC 2025 - 7.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/hash/FarmHashFingerprint64Test.java
assertThat(fingerprint(stringA.getBytes(UTF_8))) .isNotEqualTo(fingerprint(stringB.getBytes(UTF_8))); // ISO 8859-1 only has 0-255 (ubyte) representation so throws away UTF-8 characters // greater than 127 (ie with their top bit set). // Don't attempt to do this in real code. assertEquals( fingerprint(stringA.getBytes(ISO_8859_1)), fingerprint(stringB.getBytes(ISO_8859_1))); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 6.3K bytes - Viewed (0) -
src/test/java/org/codelibs/curl/CurlResponseTest.java
} @Test public void testContentCache() { CurlResponse response = new CurlResponse(); byte[] data = "test content".getBytes(); ContentCache cache = new ContentCache(data); response.setContentCache(cache); // ContentCache is not directly accessible, but we can test through content methods
Registered: Thu Sep 04 15:34:10 UTC 2025 - Last Modified: Thu Jul 31 01:01:12 UTC 2025 - 11.5K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/dict/stopwords/StopwordsFileTest.java
fos.write(getTestContent().getBytes(StandardCharsets.UTF_8)); } // Create a temporary project.properties file for SystemHelper File propFile = File.createTempFile("project", ".properties"); propFile.deleteOnExit(); try (FileOutputStream fos = new FileOutputStream(propFile)) { fos.write("fess.version=1.0.0".getBytes()); } // Initialize SystemHelper
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 17.6K bytes - Viewed (0) -
src/test/java/jcifs/netbios/NodeStatusResponseTest.java
String name1 = "WORKSTATION "; System.arraycopy(name1.getBytes("US-ASCII"), 0, src, srcIndex + 1, 16); src[srcIndex + 16] = 0x00; // hex code src[srcIndex + 17] = 0x04; // flags: active // Second name entry (18 bytes) String name2 = "DOMAIN "; System.arraycopy(name2.getBytes("US-ASCII"), 0, src, srcIndex + 19, 16); src[srcIndex + 34] = 0x00; // hex code
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 19.3K bytes - Viewed (0)