blib/lib/SDL2/endian.pm untested

filter: Statementstmt 0.0% 0 / 14 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod n/a totaltotal 0.0% 0 / 18 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package SDL2::endian {
2 use strictures 2;
3 use SDL2::Utils;
4 use Config;
5 #
6 use SDL2::stdinc;
7 #
8 define endian => [
9 [ SDL_LIL_ENDIAN => 1234 ],
10 [ SDL_BIG_ENDIAN => 4321 ],
11 [ SDL_BYTEORDER => $Config{byteorder} ],
12 ];
13  
14 =encoding utf-8
15  
16 =head1 NAME
17  
18 SDL2::endian - Basic Endian-specific Values
19  
20 =head1 SYNOPSIS
21  
22 use SDL2 qw[:endian];
23  
24 =head1 DESCRIPTION
25  
26 SDL2::endian contains values which might be useful for reading and writing
27 endian-specific values.
28  
29 =head1 Defined Values
30  
31 These may be imported with the C<:endian> tag.
32  
33 =head2 The two types of endianness
34  
35 =over
36  
37 =item C<SDL_BYTEORDER> - System's byteorder
38  
39 =item C<SDL_LIL_ENDIAN> - Example little endian value to compare against
40  
41 =item C<SDL_BIG_ENDIAN> - Example big endian value to compare against
42  
43 =back
44  
45 =head1 LICENSE
46  
47 Copyright (C) Sanko Robinson.
48  
49 This library is free software; you can redistribute it and/or modify it under
50 the terms found in the Artistic License 2. Other copyrights, terms, and
51 conditions may apply to data transmitted through this module.
52  
53 =head1 AUTHOR
54  
55 Sanko Robinson E<lt>sanko@cpan.orgE<gt>
56  
57 =begin stopwords
58  
59 endian-specific endian byteorder
60  
61 =end stopwords
62  
63 =cut
64  
65 };
66 1;