Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 370 for readLong (0.05 sec)

  1. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/DerReader.kt

        if (bytesLeft == 0L) throw ProtocolException("unexpected length: $bytesLeft at $this")
        val byteArray = source.readByteArray(bytesLeft)
        return BigInteger(byteArray)
      }
    
      fun readLong(): Long {
        if (bytesLeft !in 1..8) throw ProtocolException("unexpected length: $bytesLeft at $this")
    
        var result = source.readByte().toLong() // No "and 0xff" because this is a signed value!
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 10.5K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/smb1/SmbRandomAccessFile.java

            if (read(tmp, 0, 4) < 0) {
                throw new SmbException("EOF");
            }
            return Encdec.dec_uint32be(tmp, 0);
        }
    
        @Override
        public final long readLong() throws SmbException {
            if (read(tmp, 0, 8) < 0) {
                throw new SmbException("EOF");
            }
            return Encdec.dec_uint64be(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)
  3. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/Adapters.kt

          name = "INTEGER",
          tagClass = DerHeader.TAG_CLASS_UNIVERSAL,
          tag = 2L,
          codec =
            object : BasicDerAdapter.Codec<Long> {
              override fun decode(reader: DerReader): Long = reader.readLong()
    
              override fun encode(
                writer: DerWriter,
                value: Long,
              ) = writer.writeLong(value)
            },
        )
    
      val INTEGER_AS_BIG_INTEGER =
        BasicDerAdapter(
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 15K bytes
    - Viewed (0)
  4. guava/src/com/google/common/io/ByteStreams.java

          try {
            return input.readInt();
          } catch (IOException e) {
            throw new IllegalStateException(e);
          }
        }
    
        @Override
        public long readLong() {
          try {
            return input.readLong();
          } catch (IOException e) {
            throw new IllegalStateException(e);
          }
        }
    
        @Override
        public float readFloat() {
          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)
  5. src/test/java/jcifs/smb/SmbRandomAccessFileTest.java

                b[off + 6] = 0x07;
                b[off + 7] = 0x08;
                return 8;
            }).when(raf).read(any(byte[].class), anyInt(), eq(8));
            assertEquals(0x0102030405060708L, raf.readLong());
    
            // float 1.0f -> 0x3F800000
            doAnswer(inv -> {
                byte[] b = inv.getArgument(0);
                int off = inv.getArgument(1);
                b[off] = 0x3F;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.1K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/SmbRandomAccessFile.java

            if (read(this.tmp, 0, 4) < 0) {
                throw new SmbEndOfFileException();
            }
            return Encdec.dec_uint32be(this.tmp, 0);
        }
    
        @Override
        public final long readLong() throws SmbException {
            if (read(this.tmp, 0, 8) < 0) {
                throw new SmbEndOfFileException();
            }
            return Encdec.dec_uint64be(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)
  7. android/guava/src/com/google/common/hash/BloomFilter.java

          LockFreeBitArray dataArray = new LockFreeBitArray(Math.multiplyExact(dataLength, 64L));
          for (int i = 0; i < dataLength; i++) {
            dataArray.putData(i, din.readLong());
          }
    
          return new BloomFilter<>(dataArray, numHashFunctions, funnel, strategy);
        } catch (IOException e) {
          throw e;
        } catch (Exception e) { // sneaky checked exception
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 31 13:15:26 UTC 2025
    - 26.9K bytes
    - Viewed (0)
  8. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http2/Http2Reader.kt

          TYPE_SETTINGS -> readSettings(handler, length, flags, streamId)
          TYPE_PUSH_PROMISE -> readPushPromise(handler, length, flags, streamId)
          TYPE_PING -> readPing(handler, length, flags, streamId)
          TYPE_GOAWAY -> readGoAway(handler, length, flags, streamId)
          TYPE_WINDOW_UPDATE -> readWindowUpdate(handler, length, flags, streamId)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 19.8K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/dict/kuromoji/KuromojiItem.java

         * @param segmentation The segmentation.
         * @param reading The reading.
         * @param pos The part of speech.
         */
        public KuromojiItem(final long id, final String token, final String segmentation, final String reading, final String pos) {
            this.id = id;
            this.token = token;
            this.segmentation = segmentation;
            this.reading = reading;
            this.pos = pos;
    
            if (id == 0) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 6.3K bytes
    - Viewed (0)
  10. src/test/java/jcifs/ntlmssp/NtlmMessageTest.java

        }
    
        @Test
        void testReadULong() {
            // Test readULong with various values
            byte[] data = new byte[8];
            ByteBuffer buffer = ByteBuffer.wrap(data).order(ByteOrder.LITTLE_ENDIAN);
    
            // Test with a positive value
            buffer.putInt(0, 0x12345678);
            assertEquals(0x12345678, NtlmMessage.readULong(data, 0), "Should read positive ULong correctly.");
    
            // Test with zero
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.5K bytes
    - Viewed (0)
Back to top