Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for readChar (0.04 sec)

  1. src/main/java/jcifs/smb1/smb1/SmbRandomAccessFile.java

            if (read(tmp, 0, 2) < 0) {
                throw new SmbException("EOF");
            }
            return Encdec.dec_uint16be(tmp, 0) & 0xFFFF;
        }
    
        @Override
        public final char readChar() throws SmbException {
            if (read(tmp, 0, 2) < 0) {
                throw new SmbException("EOF");
            }
            return (char) Encdec.dec_uint16be(tmp, 0);
        }
    
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/SmbRandomAccessFileTest.java

            }).when(raf).read(any(byte[].class), anyInt(), eq(2));
            assertEquals(0x1234, raf.readUnsignedShort());
            assertEquals((short) 0x1234, raf.readShort());
            assertEquals((char) 0x1234, raf.readChar());
        }
    
        @Test
        @DisplayName("readInt/Long/Float/Double: big-endian decoding")
        void read_multiByteVariants() throws Exception {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.1K bytes
    - Viewed (0)
  3. guava/src/com/google/common/io/ByteStreams.java

          try {
            return input.readUnsignedShort();
          } catch (IOException e) {
            throw new IllegalStateException(e);
          }
        }
    
        @Override
        public char readChar() {
          try {
            return input.readChar();
          } catch (IOException e) {
            throw new IllegalStateException(e);
          }
        }
    
        @Override
        public int readInt() {
          try {
    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

            if (read(this.tmp, 0, 2) < 0) {
                throw new SmbEndOfFileException();
            }
            return Encdec.dec_uint16be(this.tmp, 0) & 0xFFFF;
        }
    
        @Override
        public final char readChar() throws SmbException {
            if (read(this.tmp, 0, 2) < 0) {
                throw new SmbEndOfFileException();
            }
            return (char) Encdec.dec_uint16be(this.tmp, 0);
        }
    
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/SmbSessionImplSecurityTest.java

                try {
                    for (int i = 0; i < iterations; i++) {
                        // This would cause ConcurrentModificationException with ArrayList
                        session.getSmbTree("readshare", null);
                        successCount.incrementAndGet();
                    }
                } catch (Exception e) {
                    exceptions.add(e);
                } finally {
                    endLatch.countDown();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 11K bytes
    - Viewed (0)
Back to top