Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for writeChars (0.05 sec)

  1. src/test/java/jcifs/smb/SmbRandomAccessFileTest.java

        }
    
        @Test
        @DisplayName("writeBytes(): writes string bytes; writeChars(): 2x length")
        void write_stringVariants() throws Exception {
            SmbRandomAccessFile raf = spy(newInstance("rw", false, true, false));
            doNothing().when(raf).write(any(byte[].class), anyInt(), anyInt());
    
            raf.writeBytes("hi");
            raf.writeChars("yo");
    
            verify(raf).write(any(byte[].class), eq(0), eq(2)); // bytes
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.1K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/smb1/SmbRandomAccessFile.java

        @Override
        public final void writeBytes(final String s) throws SmbException {
            final byte[] b = s.getBytes();
            write(b, 0, b.length);
        }
    
        @Override
        public final void writeChars(final String s) throws SmbException {
            final int clen = s.length();
            final int blen = 2 * clen;
            final byte[] b = new byte[blen];
            final char[] c = new char[clen];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  3. guava/src/com/google/common/io/ByteStreams.java

          }
        }
    
        @Override
        public void writeChar(int v) {
          try {
            output.writeChar(v);
          } catch (IOException impossible) {
            throw new AssertionError(impossible);
          }
        }
    
        @Override
        public void writeChars(String s) {
          try {
            output.writeChars(s);
          } catch (IOException impossible) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 31.1K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/SmbRandomAccessFile.java

        @Override
        public final void writeBytes(final String s) throws SmbException {
            final byte[] b = s.getBytes();
            write(b, 0, b.length);
        }
    
        @Override
        public final void writeChars(final String s) throws SmbException {
            final int clen = s.length();
            final int blen = 2 * clen;
            final byte[] b = new byte[blen];
            final char[] c = new char[clen];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 18.8K bytes
    - Viewed (0)
Back to top