Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for countUniqueBytes (0.06 sec)

  1. src/main/java/jcifs/smb/compression/DefaultCompressionService.java

                return 1.0;
            }
    
            // Simple heuristic based on data entropy
            // In practice, this would be more sophisticated
            int uniqueBytes = countUniqueBytes(data);
            double entropy = (double) uniqueBytes / 256.0;
    
            // Estimate compression ratio based on entropy
            // Lower entropy = better compression
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 11.2K bytes
    - Viewed (0)
Back to top