Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for testBytes (0.04 sec)

  1. src/test/java/jcifs/internal/smb1/ServerMessageBlockTest.java

                byte[] buffer = new byte[100];
                // Create "Test\0" in UTF-16LE with proper null terminator
                byte[] testBytes = Strings.getUNIBytes("Test");
                System.arraycopy(testBytes, 0, buffer, 0, 8);
                buffer[8] = 0; // null terminator low byte
                buffer[9] = 0; // null terminator high byte
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 36.2K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/core/misc/Base64UtilTest.java

         */
        public void testEncodeDecode_RoundTrip() throws Exception {
            // Test with ASCII text
            final String text = "Hello, World!";
            final byte[] textBytes = text.getBytes("UTF-8");
            final String encoded = Base64Util.encode(textBytes);
            final byte[] decoded = Base64Util.decode(encoded);
            assertEquals("Round trip should preserve data", text, new String(decoded, "UTF-8"));
    
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat Nov 22 11:21:59 UTC 2025
    - 6K bytes
    - Viewed (0)
Back to top