- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 77 for toByteArray (0.05 sec)
-
src/test/java/jcifs/dcerpc/msrpc/netdfsTest.java
byte[] encodeBuffer = new byte[1024]; NdrBuffer dst = new NdrBuffer(encodeBuffer, 0); info1.encode(dst); ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray()); // Use the encoded buffer for decoding NdrBuffer src = new NdrBuffer(encodeBuffer, 0); netdfs.DfsInfo1 decodedInfo1 = new netdfs.DfsInfo1(); decodedInfo1.decode(src);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 30.9K bytes - Viewed (0) -
src/test/java/jcifs/spnego/NegTokenInitTest.java
byte[] firstEncoding = original.toByteArray(); // Multiple round-trips should produce identical results NegTokenInit parsed1 = new NegTokenInit(firstEncoding); byte[] secondEncoding = parsed1.toByteArray(); NegTokenInit parsed2 = new NegTokenInit(secondEncoding); byte[] thirdEncoding = parsed2.toByteArray();
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 21K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/extractor/impl/ArchiveExtractorErrorHandlingTest.java
zos.putNextEntry(entry2); zos.write("Another valid content".getBytes("UTF-8")); zos.closeEntry(); } final InputStream in = new ByteArrayInputStream(baos.toByteArray()); final ExtractData result = zipExtractor.getText(in, null); assertNotNull(result); assertNotNull(result.getContent());
Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Mon Nov 24 03:59:47 UTC 2025 - 12.6K bytes - Viewed (0) -
src/test/java/jcifs/ntlmssp/Type2MessageTest.java
byte[] bytes = message.toByteArray(); // Then assertNotNull(bytes); // Ensure target name is NOT written to the byte array int flags = Type2Message.readULong(bytes, 20); assertFalse((flags & Type2Message.NTLMSSP_REQUEST_TARGET) != 0); } @Test @DisplayName("toByteArray should not set target info flag when target info is null")
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 38.9K bytes - Viewed (0) -
src/test/java/jcifs/ntlmssp/Type1MessageTest.java
void testConsistentByteRepresentation() throws IOException { // Given Type1Message type1 = new Type1Message(mockContext); // When byte[] bytes1 = type1.toByteArray(); byte[] bytes2 = type1.toByteArray(); // Then assertArrayEquals(bytes1, bytes2); } @Test @DisplayName("Should handle parsing invalid message bytes")
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/FilesTest.java
} public void testToByteArray() throws IOException { File asciiFile = getTestFile("ascii.txt"); File i18nFile = getTestFile("i18n.txt"); assertThat(Files.toByteArray(asciiFile)).isEqualTo(ASCII.getBytes(US_ASCII)); assertThat(Files.toByteArray(i18nFile)).isEqualTo(I18N.getBytes(UTF_8)); assertThat(Files.asByteSource(i18nFile).read()).isEqualTo(I18N.getBytes(UTF_8)); }
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Oct 28 18:44:53 UTC 2025 - 22.1K bytes - Viewed (0) -
src/test/java/jcifs/pac/PacLogonInfoTest.java
ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); PacDataInputStream pacStream = new PacDataInputStream(bais); SID id = pacStream.readId(); assertNotNull(id); // The RID should be incorporated into the SID byte[] sidBytes = id.toByteArray(); assertTrue(sidBytes.length > 0); } @TestRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.3K bytes - Viewed (0) -
src/test/java/jcifs/smb/SIDTest.java
@DisplayName("Binary constructor happy path and round-trip via toByteArray") void testBinaryConstructorAndToByteArray() { // Arrange: revision=1, count=2, identAuth zeros except last byte, subauth 10, 20 byte[] ident = new byte[] { 0, 0, 0, 0, 0, 5 }; rpc.sid_t st = buildSidT((byte) 1, ident, 10, 20); byte[] bytes = SID.toByteArray(st); // Act: construct from bytes and re-encodeRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/FilesTest.java
} public void testToByteArray() throws IOException { File asciiFile = getTestFile("ascii.txt"); File i18nFile = getTestFile("i18n.txt"); assertThat(Files.toByteArray(asciiFile)).isEqualTo(ASCII.getBytes(US_ASCII)); assertThat(Files.toByteArray(i18nFile)).isEqualTo(I18N.getBytes(UTF_8)); assertThat(Files.asByteSource(i18nFile).read()).isEqualTo(I18N.getBytes(UTF_8)); }
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Oct 28 18:44:53 UTC 2025 - 22.1K bytes - Viewed (0) -
src/main/java/jcifs/smb/compression/DefaultCompressionService.java
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 11.2K bytes - Viewed (0)