NAME
Mango::BSON::Binary - Binary type
SYNOPSIS
use Mango::BSON::Binary;
my $bin = Mango::BSON::Binary->new(data => $bytes, type => 'generic');
DESCRIPTION
Mango::BSON::Binary is a container for the BSON binary type used by Mango::BSON.
ATTRIBUTES
Mango::BSON::Binary implements the following attributes.
data
my $bytes = $bin->data;
$bin = $bin->data($bytes);
Binary data.
type
my $type = $bin->type;
$bin = $bin->type('generic');
Binary subtype.
METHODS
Mango::BSON::Binary inherits all methods from Mojo::Base.