| Search-GIN documentation | Contained in the Search-GIN distribution. |
Search::GIN::Driver::Pack::UUID - UUID key packing
version 0.08
use Search::GIN::Driver::PackUUID;
Yuval Kogman <nothingmuch@cpan.org>
This software is copyright (c) 2010 by Yuval Kogman, Infinity Interactive.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
| Search-GIN documentation | Contained in the Search-GIN distribution. |
use strict; use warnings; package Search::GIN::Driver::Pack::UUID; BEGIN { $Search::GIN::Driver::Pack::UUID::VERSION = '0.08'; } # ABSTRACT: UUID key packing use Moose::Role; use namespace::clean -except => [qw(meta)]; with qw(Search::GIN::Driver); sub unpack_ids { my ( $self, $str ) = @_; unpack("(a16)*", $str); } sub pack_ids { my ( $self, @ids ) = @_; pack("(a16)*", @ids); # FIXME enforce size } 1;
__END__