- Sort Score
- Result 10 results
- Languages All
Results 511 - 520 of 1,703 for byte (0.02 sec)
-
guava-tests/test/com/google/common/io/FilesTest.java
} public void testMap_readWrite() throws IOException { // Test data int size = 1024; byte[] expectedBytes = new byte[size]; byte[] bytes = newPreFilledByteArray(1024); // Setup File file = createTempFile(); Files.write(bytes, file); Random random = new Random(); random.nextBytes(expectedBytes); // Test
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Jul 14 14:44:08 UTC 2025 - 22.1K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SmbComSessionSetupAndX.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 7.1K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/Trans2FindFirst2ResponseTest.java
} // Helper methods to write data to byte arrays for testing read methods private void writeInt2(int val, byte[] dst, int dstIndex) { dst[dstIndex] = (byte) val; dst[dstIndex + 1] = (byte) (val >> 8); } private void writeInt4(int val, byte[] dst, int dstIndex) { dst[dstIndex] = (byte) val; dst[dstIndex + 1] = (byte) (val >> 8); dst[dstIndex + 2] = (byte) (val >> 16);Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.3K bytes - Viewed (0) -
src/main/java/jcifs/smb1/netbios/SocketInputStream.java
private final InputStream in; private SessionServicePacket ssp; private int bip, n; private final byte[] header, tmp; SocketInputStream(final InputStream in) { this.in = in; header = new byte[4]; tmp = new byte[TMP_BUFFER_SIZE]; } @Override public synchronized int read() throws IOException { if (read(tmp, 0, 1) < 0) {Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 3.3K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbComDeleteDirectoryTest.java
sdd.useUnicode = false; // format byte + path + null terminator byte[] expected = new byte[1 + dirName.length() + 1]; expected[0] = 0x04; // buffer format System.arraycopy(dirName.getBytes(), 0, expected, 1, dirName.length()); expected[dirName.length() + 1] = 0x00; // null terminator byte[] dst = new byte[100]; int len = sdd.writeBytesWireFormat(dst, 0);Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 2.7K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SmbComQueryInformationResponse.java
return fileSize; } @Override int writeParameterWordsWireFormat(final byte[] dst, final int dstIndex) { return 0; } @Override int writeBytesWireFormat(final byte[] dst, final int dstIndex) { return 0; } @Override int readParameterWordsWireFormat(final byte[] buffer, int bufferIndex) { if (wordCount == 0) { return 0; }Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 2.7K bytes - Viewed (0) -
src/test/java/jcifs/BufferCacheTest.java
cache.getBuffer(); cache.releaseBuffer(new byte[1024]); }, "All BufferCache interface methods should be callable"); } @Test @DisplayName("getBuffer should return non-null byte array") void testGetBufferContract() { // Given byte[] expectedBuffer = new byte[1024]; when(mockBufferCache.getBuffer()).thenReturn(expectedBuffer); // When
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.3K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/lease/DirectoryLeaseContext.java
// Context header: 16 bytes // Name: 4 bytes ("DLse") // Padding: 4 bytes (to align data to 8-byte boundary) // Standard lease data: 32 bytes // Directory-specific data: 20 bytes (CacheScope(4) + MaxCacheAge(8) + Flags(4) + NotificationFilter(4)) return 16 + 4 + 4 + 32 + 20; } @Override public int encode(byte[] buffer, int offset) {Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 02:21:31 UTC 2025 - 9.4K bytes - Viewed (0) -
guava/src/com/google/common/net/UrlEscapers.java
* <li>The space character " " is converted into a plus sign "+". * <li>All other characters are converted into one or more bytes using UTF-8 encoding and each * byte is then represented by the 3-character string "%XY", where "XY" is the two-digit, * uppercase, hexadecimal representation of the byte value. * </ul> * * <p>This escaper is suitable for escaping parameter names and values even when <a
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Dec 21 03:10:51 UTC 2024 - 7.1K bytes - Viewed (0) -
src/main/java/org/codelibs/core/io/FileUtil.java
} } /** * Writes the specified byte array to the file at the given pathname. * * @param pathname * The path to the file. * @param bytes * The byte array to write. */ public static void writeBytes(final String pathname, final byte[] bytes) { try (FileOutputStream fos = OutputStreamUtil.create(new File(pathname))) {Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 8.8K bytes - Viewed (0)