Sys/Socket/In6_addr.pm untested

filter: Statementstmt n/a Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a SCAR -
1 package SPVM::Sys::Socket::In6_addr;
2  
3 1;
4  
5 =head1 Name
6  
7 SPVM::Sys::Socket::In6_addr - struct in6_addr in the C language
8  
9 =head1 Description
10  
11 Sys::Socket::In6_addr class in L<SPVM> represents L<struct in6_addr|https://linux.die.net/man/7/ipv6> in the C language.
12  
13 =head1 Usage
14  
15 use Sys::Socket::In6_addr;
16  
17 =head1 Details
18  
19 This class is a pointer class. The pointer the instance has is set to a L<struct in6_addr|https://linux.die.net/man/7/ipv6> object.
20  
21 =head1 Class Methods
22  
23 =head2 new
24  
25 C<static method new : L<Sys::Socket::In6_addr|SPVM::Sys::Socket::In6_addr> ();>
26  
27 Creates a new L<Sys::Socket::In6_addr|SPVM::Sys::Socket::In6_addr> object.
28  
29 =head1 Instance Methods
30  
31 =head2 DESTROY
32  
33 C<method DESTROY : void ();>
34  
35 The destructor.
36  
37 =head2 s6_addr
38  
39 C<method s6_addr : string ();>
40  
41 Copies C<s6_addr> and returns it.
42  
43 =head2 set_s6_addr
44  
45 C<method set_s6_addr : void ($address : string);>
46  
47 Sets C<s6_addr>.
48  
49 Exceptions.
50  
51 The address must be defined. Otherwise an exception is thrown.
52  
53 The length of the address must be less than or equal to 16. Otherwise an exception is thrown.
54  
55 =head1 See Also
56  
57 =over 2
58  
59 =item * L<Sys|SPVM::Sys>
60  
61 =back
62  
63 =head1 Copyright & License
64  
65 Copyright (c) 2023 Yuki Kimoto
66  
67 MIT License
68