Giter Club home page Giter Club logo

bdiff's Introduction

BDiff

파일에 대해 바이너리 레벨로 스냅샷을 만들어 차이점이 있는 포인트를 찾거나, 또는 두 파일의 스냅샷으로 같은 파일인지 판단하는 기능을 제공한다.

Usage

var f1 = BHash.Load("c:\\sample_android_3.apk");
var f2 = BHash.Load("c:\\sample_android_3.apk");

// f1과 f2에 차이가 있는 오프셋 리스트를 반환합니다.
var diffPoints = f1.FindDiff(f2);

// f1과 f2중 첫 번째로 차이가 있는 오프셋을 반환합니다.
var firstDiffPoint = f1.FindFirstDiffPoint(f2);

// f1과 f2가 가리키는 파일이 서로 같은지 비교합니다.
var isSame = f1.IsSame(f2);

각각의 BHash 인스턴스는 재사용을 위해 저장될 수 있습니다.
(프로그램을 껏다가 켰을 시 다시 파일을 열어서 재 해싱하는 코스트를 줄이기 위해)

var bytes = f1.Save();
var f2 = BHash.Load(bytes);

var isSame = f1.IsSame(f2); // true

Flags

  • 가능하다면 BHASH_USE_MEMCMP 플래그를 활성화 하여, 바이트 배열 비교에 memcmp를 사용할 수 있습니다.

bdiff's People

Contributors

pjc0247 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.