Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 31 - 40 of 396 for readings2 (0.05 seconds)

  1. 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;
                }
    
                /*
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 10.9K bytes
    - Click Count (0)
  2. src/main/java/jcifs/smb1/smb1/TransPeekNamedPipeResponse.java

        }
    
        @Override
        int readParametersWireFormat(final byte[] buffer, int bufferIndex, final int len) {
            available = readInt2(buffer, bufferIndex);
            bufferIndex += 2;
            int head = readInt2(buffer, bufferIndex);
            bufferIndex += 2;
            status = readInt2(buffer, bufferIndex);
            return 6;
        }
    
        @Override
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 2.3K bytes
    - Click Count (0)
  3. src/test/java/jcifs/internal/smb1/trans2/Trans2SetFileInformationTest.java

            // Check FID
            int actualFid = SMBUtil.readInt2(buffer, 0);
            assertEquals(TEST_FID, actualFid);
    
            // Check information level (FILE_BASIC_INFO maps to 0x0101)
            int actualInfoLevel = SMBUtil.readInt2(buffer, 2);
            assertEquals(0x0101, actualInfoLevel);
    
            // Check reserved bytes (should be 0)
            int reserved = SMBUtil.readInt2(buffer, 4);
            assertEquals(0, reserved);
        }
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 17.8K bytes
    - Click Count (0)
  4. src/test/java/jcifs/internal/util/SMBUtilTest.java

                    (byte) 0xCD, (byte) 0xAB // 0xABCD
            };
    
            assertEquals(0x1234, SMBUtil.readInt2(src, 0));
            assertEquals(0xFFFF, SMBUtil.readInt2(src, 2));
            assertEquals(0x0000, SMBUtil.readInt2(src, 4));
            assertEquals(0xABCD, SMBUtil.readInt2(src, 6));
        }
    
        @Test
        void testReadInt4() {
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 11.1K bytes
    - Click Count (0)
  5. src/main/java/jcifs/internal/util/SMBUtil.java

         * @param src the source byte array
         * @param srcIndex the starting index in the source array
         * @return the 16-bit integer value
         */
        public static int readInt2(final byte[] src, final int srcIndex) {
            return (src[srcIndex] & 0xFF) + ((src[srcIndex + 1] & 0xFF) << 8);
        }
    
        /**
         * Reads a 32-bit integer value from a byte array in little-endian format
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 8K bytes
    - Click Count (0)
  6. src/main/java/jcifs/smb1/smb1/SmbComNTCreateAndXResponse.java

            allocationSize = readInt8(buffer, bufferIndex);
            bufferIndex += 8;
            endOfFile = readInt8(buffer, bufferIndex);
            bufferIndex += 8;
            fileType = readInt2(buffer, bufferIndex);
            bufferIndex += 2;
            deviceState = readInt2(buffer, bufferIndex);
            bufferIndex += 2;
            directory = (buffer[bufferIndex++] & 0xFF) > 0;
    
            return bufferIndex - start;
        }
    
        @Override
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 3.5K bytes
    - Click Count (0)
  7. src/test/java/jcifs/internal/smb1/trans2/Trans2QueryFSInformationTest.java

            assertEquals(0x0001, SMBUtil.readInt2(buffer, 0));
    
            // Test with FS_SIZE_INFO (3)
            trans2QueryFSInfo = new Trans2QueryFSInformation(config, FileSystemInformation.FS_SIZE_INFO);
            buffer = new byte[10];
            trans2QueryFSInfo.writeParametersWireFormat(buffer, 0);
            assertEquals(0x0103, SMBUtil.readInt2(buffer, 0));
        }
    
        @Test
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 18.9K bytes
    - Click Count (0)
  8. src/test/java/jcifs/internal/smb2/io/Smb2FlushRequestTest.java

            // Verify bytes written
            assertEquals(24, written);
    
            // Verify structure size (should be 24)
            assertEquals(24, SMBUtil.readInt2(buffer, offset));
    
            // Verify Reserved1 (2 bytes at offset+2, should be 0)
            assertEquals(0, SMBUtil.readInt2(buffer, offset + 2));
    
            // Verify Reserved2 (4 bytes at offset+4, should be 0)
            assertEquals(0, SMBUtil.readInt4(buffer, offset + 4));
    
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 11.5K bytes
    - Click Count (0)
  9. src/main/java/jcifs/smb1/smb1/Trans2FindFirst2Response.java

            if (subCommand == SmbComTransaction.TRANS2_FIND_FIRST2) {
                sid = readInt2(buffer, bufferIndex);
                bufferIndex += 2;
            }
            numEntries = readInt2(buffer, bufferIndex);
            bufferIndex += 2;
            isEndOfSearch = ((buffer[bufferIndex] & 0x01) == 0x01) == true;
            bufferIndex += 2;
            eaErrorOffset = readInt2(buffer, bufferIndex);
            bufferIndex += 2;
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 8.6K bytes
    - Click Count (0)
  10. docs/zh-hant/llm-prompt.md

    1) Use clear, concise technical Traditional Chinese consistent with existing docs.
    2) Address the reader naturally (commonly using “你/你的”).
    
    ### Headings
    
    1) Follow existing Traditional Chinese heading style (short and descriptive).
    2) Do not add trailing punctuation to headings.
    
    ### Quotes and punctuation
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 18:49:46 GMT 2025
    - 2.2K bytes
    - Click Count (0)
Back to Top