Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for countUniqueBytes (0.32 seconds)

  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
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 11.2K bytes
    - Click Count (0)
Back to Top