Search Options

Results per page
Sort
Preferred Languages
Advance

Results 161 - 170 of 232 for readInt4 (0.05 sec)

  1. src/test/java/jcifs/internal/smb1/net/NetShareEnumTest.java

            }
            offset += descrBytes.length;
    
            // 3. Level (2 bytes)
            assertEquals(0x0001, SMBUtil.readInt2(dst, offset));
            offset += 2;
    
            // 4. MaxDataCount (2 bytes)
            int maxDataCount = SMBUtil.readInt2(dst, offset);
            assertTrue(maxDataCount > 0);
            offset += 2;
    
            // Verify total bytes written
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  2. src/main/java/jcifs/pac/Pac.java

                int bufferCount = pacStream.readInt();
                int version = pacStream.readInt();
    
                if (version != PacConstants.PAC_VERSION) {
                    throw new PACDecodingException("Unrecognized PAC version " + version);
                }
    
                for (int bufferIndex = 0; bufferIndex < bufferCount; bufferIndex++) {
                    int bufferType = pacStream.readInt();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 7.3K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/session/Smb2LogoffResponseTest.java

                // Assert: message is meaningful
                assertEquals("Structure size is not 4", ex.getMessage());
            }
    
            @Test
            @DisplayName("Null buffer leads to NullPointerException from readInt2")
            void nullBuffer_throwsNPE() {
                // Arrange
                Smb2LogoffResponse resp = newResponse();
    
                // Act & Assert
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.7K bytes
    - Viewed (0)
  4. okhttp/src/commonTest/kotlin/okhttp3/internal/publicsuffix/PublicSuffixDatabaseTest.kt

        }
      }
    
      @Test
      fun publicSuffixExceptions() {
        val buffer = Buffer()
        FileSystem.SYSTEM.read(pathForTests) {
          var length = readInt()
          skip(length.toLong())
          length = readInt()
          buffer.write(this, length.toLong())
        }
        while (!buffer.exhausted()) {
          val exception = buffer.readUtf8LineStrict()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue May 27 22:00:49 UTC 2025
    - 8.5K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/dict/kuromoji/KuromojiFileTest.java

                    "seg4", "reading4", "pos4");
            kuromojiFile.insert(kuromojiItem1);
            final PagingList<KuromojiItem> itemList2 = kuromojiFile.selectList(0,
                    20);
            assertEquals(4, itemList2.size());
            assertEquals("token4", itemList2.get(3).getToken());
            assertEquals("seg4", itemList2.get(3).getSegmentation());
            assertEquals("reading4", itemList2.get(3).getReading());
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Mar 15 06:53:53 UTC 2025
    - 7.3K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/session/Smb2LogoffRequestTest.java

            assertEquals(4, written, "Should report 4 bytes written");
            // StructureSize (2 bytes, LE) == 4
            assertEquals(4, SMBUtil.readInt2(buf, offset));
            // Reserved (2 bytes, LE) == 0
            assertEquals(0, SMBUtil.readInt2(buf, offset + 2));
        }
    
        @Test
        @DisplayName("writeBytesWireFormat throws when buffer too small")
        void writeBytesWireFormat_throwsIfInsufficientSpace() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/smb1/AndXServerMessageBlock.java

                /*
                 * these fields are common to all andx commands
                 * so let's populate them here
                 */
    
                andxCommand = buffer[bufferIndex];
                andxOffset = readInt2(buffer, bufferIndex + 2);
    
                if (andxOffset == 0) { /* Snap server workaround */
                    andxCommand = (byte) 0xFF;
                }
    
                /*
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  8. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/publicsuffix/BasePublicSuffixList.kt

        try {
          listSource().buffer().use { bufferedSource ->
            val totalBytes = bufferedSource.readInt()
            publicSuffixListBytes = bufferedSource.readByteString(totalBytes.toLong())
    
            val totalExceptionBytes = bufferedSource.readInt()
            publicSuffixExceptionListBytes = bufferedSource.readByteString(totalExceptionBytes.toLong())
          }
    
          synchronized(this) {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jul 28 07:33:49 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/smb2/lock/Smb2LockResponse.java

         */
        @Override
        protected int readBytesWireFormat(final byte[] buffer, final int bufferIndex) throws SMBProtocolDecodingException {
            final int structureSize = SMBUtil.readInt2(buffer, bufferIndex);
            if (structureSize != 4) {
                throw new SMBProtocolDecodingException("Expected structureSize = 4");
            }
            return 4;
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.1K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb2/tree/Smb2TreeDisconnectResponse.java

         */
        @Override
        protected int readBytesWireFormat(final byte[] buffer, final int bufferIndex) throws SMBProtocolDecodingException {
            final int structureSize = SMBUtil.readInt2(buffer, bufferIndex);
            if (structureSize != 4) {
                throw new SMBProtocolDecodingException("Structure size != 4");
            }
    
            return 4;
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.2K bytes
    - Viewed (0)
Back to top