- Sort Score
- Result 10 results
- Languages All
Results 401 - 410 of 1,057 for Bytes (0.02 sec)
-
src/test/java/org/codelibs/core/io/FileUtilTest.java
File inputFile = URLUtil.toFile(url); /** * @throws Exception */ @Test public void testFileToFile() throws Exception { final byte[] bytes = readBytes(inputFile); assertThat(bytes, is("あいうえお".getBytes("UTF-8"))); } /** * @throws Exception */ @Test public void testReadUTF8() throws Exception {
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Sat May 10 01:32:17 UTC 2025 - 1.6K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/ioctl/QueryNetworkInterfaceInfoRequest.java
/** * Get the size of this request (always 0) * * @return size in bytes */ public int size() { return 0; } /** * Encode this request (no-op since there's no data) * * @param dst destination buffer * @param dstIndex starting offset * @return number of bytes written (always 0) */ public int encode(byte[] dst, int dstIndex) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 11:13:46 UTC 2025 - 1.6K bytes - Viewed (0) -
src/archive/tar/example_test.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package tar_test import ( "archive/tar" "bytes" "fmt" "io" "log" "os" ) func Example_minimal() { // Create and add some files to the archive. var buf bytes.Buffer tw := tar.NewWriter(&buf) var files = []struct { Name, Body string }{ {"readme.txt", "This archive contains some text files."},
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Thu Nov 16 16:54:08 UTC 2017 - 1.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/TreeConnectResponseTest.java
// Then assertEquals(2, bytesRead, "Should read 2 bytes"); assertTrue(response.isSupportSearchBits(), "Should decode search bits flag"); assertTrue(response.isShareDfs(), "Should decode DFS flag"); } @Test @DisplayName("Should decode bytes correctly") void testReadBytesWireFormat() throws Exception {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 24.9K bytes - Viewed (0) -
guava/src/com/google/common/io/Resources.java
*/ public static CharSource asCharSource(URL url, Charset charset) { return asByteSource(url).asCharSource(charset); } /** * Reads all bytes from a URL into a byte array. * * @param url the URL to read from * @return a byte array containing all the bytes from the URL * @throws IOException if an I/O error occurs */ public static byte[] toByteArray(URL url) throws IOException {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 7.4K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbComWriteTest.java
SmbComWrite write = new SmbComWrite(); write.setParam(0, 0L, 0, data, 1, 3); // Write bytes 2,3,4 byte[] dst = new byte[10]; // Act int bytesWritten = write.writeBytesWireFormat(dst, 0); // Assert assertEquals(6, bytesWritten, "Should write 6 bytes (1 type + 2 length + 3 data)"); assertEquals(0x01, dst[0], "Data block type");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/info/Smb2QueryInfoRequestTest.java
// Verify that inputBuffer.encode was called verify(mockInputBuffer).encode(any(byte[].class), anyInt()); // Verify total bytes written assertEquals(90, bytesWritten); // 40 bytes header + 50 bytes input buffer } catch (Exception e) { throw new RuntimeException(e); } } @ParameterizedTest
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 22.6K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/AndXServerMessageBlockTest.java
int writeParameterWordsWireFormat(byte[] dst, int dstIndex) { paramWordsWritten = 10; // simulate write of 10 bytes of parameter words return paramWordsWritten; } @Override int writeBytesWireFormat(byte[] dst, int dstIndex) { bytesWritten = 20; // simulate 20 bytes of data return bytesWritten; } @Override
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.5K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbFileInputStreamTest.java
@DisplayName("Happy path") class HappyPath { @Test @DisplayName("readDirect over SMB2 returns bytes read and uses current offset") void readDirectSmb2Happy() throws Exception { SmbFileInputStream in = newStream(); // Arrange SMB2 response to return 3 bytes Smb2ReadResponse smb2Resp = mock(Smb2ReadResponse.class); when(smb2Resp.getDataLength()).thenReturn(3);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 12.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/tree/Smb2TreeDisconnectRequestTest.java
// Then // SMB2_HEADER_LENGTH + 4 bytes for tree disconnect structure int expectedSize = Smb2Constants.SMB2_HEADER_LENGTH + 4; // size8 method aligns to 8-byte boundary int alignedSize = (expectedSize + 7) & ~7; assertEquals(alignedSize, size); } @Test @DisplayName("Should write correct bytes to wire format") void testWriteBytesWireFormat() { // Given
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.1K bytes - Viewed (0)