Binary Raw - Docs
    Preparing search index...

    Function entropyMap

    • Splits the buffer into segments of windowSize bytes and calculates the entropy of each. Returns the complete file map.

      Parameters

      • buffer: Uint8Array

        Complete buffer

      • windowSize: number = 256

        Size of each window in bytes (default: 256)

      • step: number = windowSize

        Step between windows (default: equal to windowSize)

      • skipResiduals: boolean = false

        If true, skips final segments that are too small (< 50% of windowSize)

      Returns EntropySegment[]