Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 403 for Allocation (0.04 sec)

  1. src/test/java/jcifs/smb1/smb1/BufferCacheSecurityTest.java

    import org.junit.jupiter.api.Test;
    
    /**
     * Security-focused test cases for BufferCache to verify buffer overflow protection.
     */
    public class BufferCacheSecurityTest {
    
        /**
         * Test that buffer allocation validates size to prevent overflow.
         */
        @Test
        public void testBufferSizeValidation() {
            // When - Get a buffer
            byte[] buffer = BufferCache.getBuffer();
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 9.6K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/smb1/Trans2QueryFSInformationResponse.java

            final int start = bufferIndex;
    
            final SmbInfoAllocation info = new SmbInfoAllocation();
    
            // Read total allocation units.
            info.alloc = readInt8(buffer, bufferIndex);
            bufferIndex += 8;
    
            // read caller available allocation units
            info.free = readInt8(buffer, bufferIndex);
            bufferIndex += 8;
    
            // skip actual free units
            bufferIndex += 8;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  3. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http2/Http2.kt

          type == TYPE_PUSH_PROMISE && flags and FLAG_END_PUSH_PROMISE != 0 -> {
            result.replace("HEADERS", "PUSH_PROMISE") // TODO: Avoid allocation.
          }
          type == TYPE_DATA && flags and FLAG_COMPRESSED != 0 -> {
            result.replace("PRIORITY", "COMPRESSED") // TODO: Avoid allocation.
          }
          else -> result
        }
      }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 5.7K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/CriticalPerformanceTest.java

            double avgAllocTimeNs = totalAllocTime.get() / (double) allocations.get();
            double avgReleaseTimeNs = totalReleaseTime.get() / (double) releases.get();
    
            System.out.printf("Buffer Cache Performance: %d allocs, %d releases in %.2f ms%n", allocations.get(), releases.get(),
                    overallTimeMs);
            System.out.printf("  Avg allocation time: %.2f ns%n", avgAllocTimeNs);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 15.3K bytes
    - Viewed (0)
  5. src/bufio/scan.go

    	}
    }
    
    // Buffer controls memory allocation by the Scanner.
    // It sets the initial buffer to use when scanning
    // and the maximum size of buffer that may be allocated during scanning.
    // The contents of the buffer are ignored.
    //
    // The maximum token size must be less than the larger of max and cap(buf).
    // If max <= cap(buf), [Scanner.Scan] will use this buffer only and do no allocation.
    //
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Wed May 21 18:05:26 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/fscc/FileSystemInformation.java

     * used in query file system information operations, with constants for information levels.
     *
     * @author mbechler
     */
    public interface FileSystemInformation extends Decodable {
    
        /**
         * SMB information allocation constant.
         */
        byte SMB_INFO_ALLOCATION = -1;
    
        /**
         * File system size information constant.
         */
        byte FS_SIZE_INFO = 3;
        /**
         * File system full size information constant.
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 1.6K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/smb2/rdma/RdmaBufferManager.java

        }
    
        /**
         * Get a send region from the pool or allocate a new one
         *
         * @param minSize minimum required size
         * @return memory region for sending
         * @throws IOException if allocation fails
         */
        public RdmaMemoryRegion getSendRegion(int minSize) throws IOException {
            if (minSize <= sendBufferSize) {
                RdmaMemoryRegion region = availableSendRegions.poll();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 05:11:12 UTC 2025
    - 8.7K bytes
    - Viewed (0)
  8. src/main/java/jcifs/util/ResourceManager.java

            if (log.isDebugEnabled() && holder.allocationStackTrace != null) {
                StringBuilder sb = new StringBuilder("Allocation stack trace:\n");
                for (StackTraceElement element : holder.allocationStackTrace) {
                    sb.append("\tat ").append(element).append("\n");
                }
                log.debug(sb.toString());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 16.2K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/hash/BloomFilterStrategies.java

            LockFreeBitArray lockFreeBitArray = (LockFreeBitArray) o;
            // TODO(lowasser): avoid allocation here
            return Arrays.equals(toPlainArray(data), toPlainArray(lockFreeBitArray.data));
          }
          return false;
        }
    
        @Override
        public int hashCode() {
          // TODO(lowasser): avoid allocation here
          return Arrays.hashCode(toPlainArray(data));
        }
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/fscc/FileStandardInfo.java

    import jcifs.internal.util.SMBUtil;
    
    /**
     * Represents the FILE_STANDARD_INFORMATION structure used in SMB2/3 file system control code (FSCC) operations.
     * This structure provides standard file information including allocation size, end-of-file position,
     * number of links, deletion status, and directory flag.
     */
    public class FileStandardInfo implements BasicFileInformation {
    
        private long allocationSize;
        private long endOfFile;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.7K bytes
    - Viewed (0)
Back to top