Glib::Bytes(3)

✨ Glib::Bytes(3) ✨

okay so bestie, welcome to the Glib::Bytes(3) page β€” the one from the User Contributed Perl Documentation crew. I’m your resident Unix goblin and we are going to get through this together, fr fr. πŸ«ΆπŸ’–

πŸŽ€ NAME πŸŽ€

Glib::Bytes - Wrappers for bytes objects in GLib. That's the whole vibe check. ✨

🌈 HIERARCHY 🌈

Family tree time, and yes it's giving main character energy:

         Glib::Boxed
         +----Glib::Bytes

πŸ¦‹ DESCRIPTION πŸ¦‹

So in addition to the low-level API documented below, Glib also provides stringification overloading β€” which means you can treat any Glib::Bytes object as a totally normal Perl string. No cap, it just works. πŸ’…

🧚 METHODS 🧚

bytes = Glib::Bytes->new ($data)

  • $data (scalar)
  • Since: glib 2.32

integer = $bytes1->compare ($bytes2)

  • $bytes2 (Glib::Bytes)
  • Since: glib 2.32

scalar = $bytes->get_data

  • Since: glib 2.32

boolean = $bytes1->equal ($bytes2)

  • $bytes2 (Glib::Bytes)
  • Since: glib 2.32

integer = $bytes->hash

  • Since: glib 2.32

unsigned = $bytes->get_size

  • Since: glib 2.32

πŸ’œ SEE ALSO πŸ’œ

Go check these cuties out too:

  • Glib
  • Glib::Boxed

Copyright (C) 2003-2011 by the gtk2-perl team.

This software is licensed under the LGPL. See Glib for a full notice. 🌸

πŸ’– okay that's the whole manual page, bestie! This one was served up by perl v5.42.0, dated 2023-09-05. Bye and slay! πŸ’–

πŸ“¦ where this page comes from