Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for readUnsignedByte (0.18 sec)

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

            raf.setLength(0L);
    
            verify(tree, times(1)).send(any(SmbComWrite.class), any(SmbComWriteResponse.class), eq(RequestParam.NO_RETRY));
        }
    
        @Test
        @DisplayName("readBoolean/readByte/readUnsignedByte: decode 1-byte values")
        void read_oneByteVariants() throws Exception {
            SmbRandomAccessFile raf = spy(newInstance("r", false, false, false));
            // For each 1-byte read, fill provided buffer with 0xFF/0x01
    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

            if (read(tmp, 0, 1) < 0) {
                throw new SmbException("EOF");
            }
            return tmp[0];
        }
    
        @Override
        public final int readUnsignedByte() throws SmbException {
            if (read(tmp, 0, 1) < 0) {
                throw new SmbException("EOF");
            }
            return tmp[0] & 0xFF;
        }
    
        @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)
  3. guava/src/com/google/common/io/ByteStreams.java

            throw new IllegalStateException(e);
          } catch (IOException impossible) {
            throw new AssertionError(impossible);
          }
        }
    
        @Override
        public int readUnsignedByte() {
          try {
            return input.readUnsignedByte();
          } catch (IOException e) {
            throw new IllegalStateException(e);
          }
        }
    
        @Override
        public short readShort() {
          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, 1) < 0) {
                throw new SmbEndOfFileException();
            }
            return this.tmp[0];
        }
    
        @Override
        public final int readUnsignedByte() throws SmbException {
            if (read(this.tmp, 0, 1) < 0) {
                throw new SmbEndOfFileException();
            }
            return this.tmp[0] & 0xFF;
        }
    
        @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)
Back to top