- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for getASCIIBytes (0.35 sec)
-
src/test/java/jcifs/util/StringsTest.java
} @Test @DisplayName("getASCIIBytes should encode string as ASCII") void testGetASCIIBytes() { // When byte[] result = Strings.getASCIIBytes(ASCII_STRING); // Then assertNotNull(result, "Result should not be null");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.6K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/com/SmbComNegotiate.java
final ByteArrayOutputStream bos = new ByteArrayOutputStream(); for (final String dialect : this.dialects) { bos.write(0x02); try { bos.write(Strings.getASCIIBytes(dialect)); } catch (final IOException e) { throw new RuntimeCIFSException(e); } bos.write(0x0); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 3.5K bytes - Viewed (0) -
src/main/java/jcifs/util/Strings.java
} /** * Encodes a string into ASCII bytes. * * @param str the string to encode * @return the string as bytes (ASCII) */ public static byte[] getASCIIBytes(final String str) { return getBytes(str, ASCII_ENCODING); } /** * Encodes a string into bytes using the OEM encoding from the configuration. * * @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)