ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Coro/Coro/Storable.pm
(Generate patch)

Comparing Coro/Coro/Storable.pm (file contents):
Revision 1.3 by root, Wed Apr 18 13:46:32 2007 UTC vs.
Revision 1.4 by root, Wed Apr 18 14:46:21 2007 UTC

24 24
25Retrieve an object from the given $pst, which must have been created with 25Retrieve an object from the given $pst, which must have been created with
26C<Coro::Storable::freeze> or C<Storable::store_fd>/C<Storable::store> 26C<Coro::Storable::freeze> or C<Storable::store_fd>/C<Storable::store>
27(sorry, but Storable uses incompatible formats for disk/mem objects). 27(sorry, but Storable uses incompatible formats for disk/mem objects).
28 28
29This works by calling C<Coro::cede> for every 512 bytes read in. 29This works by calling C<Coro::cede> for every 4096 bytes read in.
30 30
31=item $pst = freeze $ref 31=item $pst = freeze $ref
32 32
33Freeze the given scalar into a Storable object. It uses the same format as 33Freeze the given scalar into a Storable object. It uses the same format as
34C<Storable::nstore_fd> (note the C<n>). 34C<Storable::nstore_fd> (note the C<n>).
81 __PACKAGE__ 81 __PACKAGE__
82} 82}
83 83
84sub FILL { 84sub FILL {
85 Coro::cede; 85 Coro::cede;
86 read $_[1], my $buf, 512 86 read $_[1], my $buf, 4096
87 or return undef; 87 or return undef;
88 $buf 88 $buf
89} 89}
90 90
91sub WRITE { 91sub WRITE {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines