Search Options

Results per page
Sort
Preferred Languages
Advance

Results 511 - 520 of 2,830 for rint (1.2 sec)

  1. src/test/java/jcifs/internal/smb2/ioctl/SrvCopychunkTest.java

            void testEncodeAtDifferentPositions(int position) {
                // Given
                byte[] largeBuffer = new byte[200];
                long sourceOffset = 12345L;
                long targetOffset = 67890L;
                int length = 99999;
                SrvCopychunk chunk = new SrvCopychunk(sourceOffset, targetOffset, length);
    
                // When
                int bytesWritten = chunk.encode(largeBuffer, position);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.4K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/compression/CompressionService.java

        /**
         * Compression algorithm constants matching SMB3 specification.
         */
        public static final int COMPRESSION_NONE = 0x0;
        public static final int COMPRESSION_LZ77 = 0x1;
        public static final int COMPRESSION_LZ77_HUFFMAN = 0x2;
        public static final int COMPRESSION_LZNT1 = 0x3;
        public static final int COMPRESSION_PATTERN_V1 = 0x4;
    
        /**
         * Compresses data using the specified algorithm.
         *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb1/trans/nt/NtTransQuerySecurityDescResponse.java

            return 0;
        }
    
        @Override
        protected int readParametersWireFormat(final byte[] buffer, final int bufferIndex, final int len) {
            this.length = SMBUtil.readInt4(buffer, bufferIndex);
            return 4;
        }
    
        @Override
        protected int readDataWireFormat(final byte[] buffer, int bufferIndex, final int len) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/dfs/DfsReferralRequestBufferTest.java

            void testEncodeWithOffset() {
                String path = "\\\\test";
                int maxReferralLevel = 5;
                buffer = new DfsReferralRequestBuffer(path, maxReferralLevel);
    
                int offset = 10;
                byte[] dst = new byte[offset + buffer.size()];
                int bytesEncoded = buffer.encode(dst, offset);
    
                assertEquals(buffer.size(), bytesEncoded);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.5K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb1/trans/TransCallNamedPipe.java

            return 4;
        }
    
        @Override
        protected int readSetupWireFormat(final byte[] buffer, final int bufferIndex, final int len) {
            return 0;
        }
    
        @Override
        protected int writeParametersWireFormat(final byte[] dst, final int dstIndex) {
            return 0;
        }
    
        @Override
        protected int writeDataWireFormat(final byte[] dst, final int dstIndex) {
            if (dst.length - dstIndex < this.pipeDataLen) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/ntlmssp/NtlmMessage.java

        static byte[] readSecurityBuffer(final byte[] src, final int index) {
            final int length = readUShort(src, index);
            final int offset = readULong(src, index + 4);
            final byte[] buffer = new byte[length];
            System.arraycopy(src, offset, buffer, 0, length);
            return buffer;
        }
    
        static void writeULong(final byte[] dest, final int offset, final int ulong) {
            dest[offset] = (byte) (ulong & 0xff);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/hash/AbstractStreamingHasherTest.java

          }
        }
      }
    
      private static class Sink extends AbstractStreamingHasher {
        final int chunkSize;
        final int bufferSize;
        final ByteArrayOutputStream out = new ByteArrayOutputStream();
    
        int processCalled = 0;
        boolean remainingCalled = false;
    
        Sink(int chunkSize, int bufferSize) {
          super(chunkSize, bufferSize);
          this.chunkSize = chunkSize;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 8.5K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb1/trans/TransCallNamedPipeTest.java

        void testWriteDataWireFormatWithOffsetAndLength() {
            // Given
            int dataOffset = 2;
            int dataLength = 5;
            transCallNamedPipe = new TransCallNamedPipe(mockConfig, TEST_PIPE_NAME, TEST_DATA, dataOffset, dataLength);
            byte[] dst = new byte[100];
            int dstIndex = 10;
    
            // When
            int bytesWritten = transCallNamedPipe.writeDataWireFormat(dst, dstIndex);
    
            // Then
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.8K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/smb1/trans2/Trans2QueryFSInformation.java

        }
    
        @Override
        protected int readSetupWireFormat(final byte[] buffer, final int bufferIndex, final int len) {
            return 0;
        }
    
        @Override
        protected int readParametersWireFormat(final byte[] buffer, final int bufferIndex, final int len) {
            return 0;
        }
    
        @Override
        protected int readDataWireFormat(final byte[] buffer, final int bufferIndex, final int len) {
            return 0;
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.9K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/create/CreateContextRequestTest.java

                int[] expectedSizes = { 16, 24, 32, 40, 48 };
    
                for (int i = 0; i < contexts.length; i++) {
                    contexts[i] = new MockCreateContextRequest("CTX" + i, expectedSizes[i]);
                }
    
                // Calculate total size
                int totalSize = 0;
                for (int i = 0; i < contexts.length; i++) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.9K bytes
    - Viewed (0)
Back to top