GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  BSON::BINARY (3)

.ds Aq ’

NAME

BSON::Binary - Binary data for BSON

CONTENTS

SYNOPSIS



    use BSON;

    my $bin = BSON::Binary->new([1,2,3,4,5,0x67,0x89], 0);



DESCRIPTION

This module is needed for BSON and it manages BSON’s binary element.

METHODS

    new

Main constructor which takes two parameters: An array reference with binary data and a data type. A string may also be passed as the first parameter, in which case it will be converted to an array ref.



    my $bin = BSON::Binary->new("classic\x20string\0", 0);



The different types are described in the BSON specification. A type is one of the following:



    0x00  Binary / Generic
    0x01  Function
    0x02  Binary (Old)
    0x03  UUID
    0x05  MD5
    0x80  User defined



    data

Returns an array reference to the contents of the binary data.

    type

Returns the type of the binary data per the BSON specification.

SEE ALSO

BSON

AUTHOR

minimalist, <minimalist at lavabit.com>

BUGS

Bug reports and patches are welcome. Reports which include a failing Test::More style test are helpful and will receive priority.

LICENSE AND COPYRIGHT

Copyright 2011 minimalist.

This program is free software; you can redistribute it and/or modify it under the terms as perl itself.

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 BSON::BINARY (3) 2011-07-26

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.