Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Never use Storable to save XS objects

by ysth (Canon)
on May 11, 2004 at 17:44 UTC ( #352521=note: print w/replies, xml ) Need Help??


in reply to Never use Storable to save XS objects

It depends; ideally modules mucking about as Wx::Bitmap seems to would provide Storable hooks to be properly serializable. (See Storable)
  • Comment on Re: Never use Storable to save XS objects

Replies are listed 'Best First'.
Re: Re: Never use Storable to save XS objects
by simonflk (Pilgrim) on May 11, 2004 at 18:09 UTC

    ysth says:

    It depends; ideally modules mucking about as Wx::Bitmap seems to would provide Storable hooks to be properly serializable

    Nice, I'd missed/forgotten about those hooks. I don't think it'll work for Wx objects that are subclasses of Wx::Window. But it'd probably work fine for Wx::Bitmap. Here's some untested code for (de)?serialising Wx::Bitmaps...

    my $bitmap_data = $wx_bitmap->GetImage->GetData; # serialise bitmap data # later... $wx_bitmap = new Wx::Image()->SetData($bitmap_data)->GetBitmap;

    -- simonflk

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://352521]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2023-03-30 07:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which type of climate do you prefer to live in?






    Results (73 votes). Check out past polls.

    Notices?