NAME

App::Bin::Search - Base class for bin-search tool.

SYNOPSIS

use App::Bin::Search;

my $app = App::Bin::Search->new;
my $exit_code = $app->run;

METHODS

new

my $app = App::Bin::Search->new;

Constructor.

Returns instance of object.

run

my $exit_code = $app->run;

Run.

Returns 1 for error, 0 for success.

EXAMPLE1

use strict;
use warnings;

use App::Bin::Search;

# Arguments.
@ARGV = (
        'FFABCD',
        'D5',
);

# Run.
exit App::Bin::Search->new->run;

# Output like:
# Found D5E68 at 8 bit

EXAMPLE2

use strict;
use warnings;

use App::Bin::Search;

# Arguments.
@ARGV = (
        '-b',
        'FFABCD',
        'D5',
);

# Run.
exit App::Bin::Search->new->run;

# Output like:
# Found 11010101111001101 at 8 bit

EXAMPLE3

use strict;
use warnings;

use App::Bin::Search;

# Arguments.
@ARGV = (
        '-v',
        'FFABCD',
        'D5',
);

# Run.
exit App::Bin::Search->new->run;

# Output like:
# Hexadecimal stream: FFABCD
# Size of hexadecimal stream: 24
# Looking for: D5
# FFABCD at 1bit 
# FF579A at 2bit 
# FEAF34 at 3bit 
# FD5E68 at 4bit 
# FABCD at 5bit 
# F579A at 6bit 
# EAF34 at 7bit 
# D5E68 at 8bit 
# Found D5E68 at 8 bit
# ABCD at 9bit 
# 579A at 10bit 
# AF34 at 11bit 
# 5E68 at 12bit 
# BCD at 13bit 
# 79A at 14bit 
# F34 at 15bit 
# E68 at 16bit 
# CD at 17bit 
# 9A at 18bit 
# 34 at 19bit 
# 68 at 20bit 
# D at 21bit 
# A at 22bit 
# 4 at 23bit 
# 8 at 24bit

DEPENDENCIES

Bit::Vector, Getopt::Std.

REPOSITORY

https://github.com/michal-josef-spacek/App-Bin-Search

AUTHOR

Michal Josef Špaček mailto:skim@cpan.org

http://skim.cz

LICENSE AND COPYRIGHT

© 2023 Michal Josef Špaček

BSD 2-Clause License

VERSION

0.02