Net::F...r::RAW(3pm)

πŸ“¦
version 1.21 Β· 2 versions
  • 1.21 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 1.21 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– Net::F...r::RAW πŸ’–

okay so bestie, welcome to Net::Frame::Layer::RAW, aka the manual page for the empty layer object, from the User Contributed Perl Documentation collection. she's little. she's hollow. she's iconic. let's get into it 🫢


✨ NAME ✨

Net::Frame::Layer::RAW β€” empty layer object

like. literally empty. a beautiful void. the raw layer 2 representation with nothing going on inside and that is the point πŸ’…


🌸 SYNOPSIS 🌸

build a layer:

use Net::Frame::Layer::RAW qw(:consts);

# Build a layer
my $layer = Net::Frame::Layer::RAW->new;
$layer->pack;

print 'RAW: '.$layer->dump."\n";

read a raw layer:

# Read a raw layer
my $layer = Net::Frame::Layer::RAW->new(raw => $raw);

print $layer->print."\n";
print 'PAYLOAD: '.unpack('H*', $layer->payload)."\n"
   if $layer->payload;

see how there's basically nothing to configure? no cap, that's the whole vibe. she just packs, she dumps, she prints, she unpacks her payload if she has one. main character energy but make it minimal ✨


πŸ¦‹ DESCRIPTION πŸ¦‹

This module implements the encoding and decoding of the raw layer 2. that's it. that's the job. she encodes, she decodes, she does not make it weird 🌈

also, see Net::Frame::Layer for other attributes and methods β€” that's where all the rest of the lore lives, bestie.


πŸŽ€ ATTRIBUTES πŸŽ€

No attributes in this layer.

fr fr. zero. none. the void is the attribute. 😭

the following are inherited attributes though, so go read Net::Frame::Layer for more info:

  • raw
  • payload
  • nextLayer

πŸ’… METHODS πŸ’…

  • new β€” Object constructor. No default values, because no attributes here. (not a single default to her name. obsessed.)

the following are inherited methods. some of them may be overridden in this layer, and some others may not be meaningful in this layer. see Net::Frame::Layer for more information:

  • layer
  • computeLengths
  • computeChecksums
  • pack
  • unpack
  • encapsulate
  • getLength
  • getPayloadLength
  • print
  • dump

⭐ CONSTANTS ⭐

No constants here.

bestie you can still qw(:consts) in the use line, the module just doesn't hand you any constants of its own. nothing to memorise. slay πŸ“

πŸ”₯ SEE ALSO πŸ”₯

  • Net::Frame::Layer

that's the one. go there. iykyk πŸ‘‘


πŸ‘‘ AUTHOR πŸ‘‘

Patrice <GomoR> Auffret


Copyright (c) 2006-2019, Patrice <GomoR> Auffret

You may distribute this module under the terms of the Artistic license. See LICENSE.Artistic file in the source distribution archive.


and that's the whole page, bestie 🧚 this was generated by perl v5.36.0 and dated 2022-12-04, so shoutout to that exact version and that exact date for making this little empty-layer moment possible. periodt πŸ’–βœ¨πŸŽ€