~ubuntu-branches/ubuntu/trusty/erlang/trusty

« back to all changes in this revision

Viewing changes to lib/asn1/test/asn1_SUITE_data/BitStr.py

  • Committer: Bazaar Package Importer
  • Author(s): Clint Byrum
  • Date: 2011-05-05 15:48:43 UTC
  • mfrom: (3.5.13 sid)
  • Revision ID: james.westby@ubuntu.com-20110505154843-0om6ekzg6m7ugj27
Tags: 1:14.b.2-dfsg-3ubuntu1
* Merge from debian unstable.  Remaining changes:
  - Drop libwxgtk2.8-dev build dependency. Wx isn't in main, and not
    supposed to.
  - Drop erlang-wx binary.
  - Drop erlang-wx dependency from -megaco, -common-test, and -reltool, they
    do not really need wx. Also drop it from -debugger; the GUI needs wx,
    but it apparently has CLI bits as well, and is also needed by -megaco,
    so let's keep the package for now.
  - debian/patches/series: Do what I meant, and enable build-options.patch
    instead.
* Additional changes:
  - Drop erlang-wx from -et
* Dropped Changes:
  - patches/pcre-crash.patch: CVE-2008-2371: outer level option with
    alternatives caused crash. (Applied Upstream)
  - fix for ssl certificate verification in newSSL: 
    ssl_cacertfile_fix.patch (Applied Upstream)
  - debian/patches/series: Enable native.patch again, to get stripped beam
    files and reduce the package size again. (build-options is what
    actually accomplished this)
  - Remove build-options.patch on advice from upstream and because it caused
    odd build failures.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
BitStr DEFINITIONS ::=
 
2
BEGIN
 
3
 
 
4
-- F.2.5.1      
 
5
-- Use a bit string type to model binary data whose format and 
 
6
-- length are unspecified, 
 
7
-- or specified elsewhere, and whose length in bits is not necessarily 
 
8
-- a multiple of eight.
 
9
--      EXAMPLE
 
10
 
 
11
G3FacsimilePage ::= BIT STRING
 
12
--  a sequence of bits conforming to Recommendation T.4.
 
13
        
 
14
image G3FacsimilePage ::= '100110100100001110110'B
 
15
trailer BIT STRING ::= '0123456789ABCDEF'H
 
16
body1 G3FacsimilePage ::= '1101'B
 
17
body2 G3FacsimilePage ::= '1101000'B
 
18
 
 
19
-- F.2.5.2      
 
20
-- Use a bit string type with a size constraint to model the 
 
21
-- values of a fixed sized bit field.
 
22
-- EXAMPLE
 
23
 
 
24
BitField ::= BIT STRING (SIZE (12))
 
25
map1 BitField ::= '100110100100'B
 
26
map2 BitField ::= '9A4'H
 
27
map3 BitField ::= '1001101001'B --  Illegal - violates size constraint
 
28
 
 
29
-- F.2.5.3      
 
30
-- Use a bit string type to model the values of a bit map, an 
 
31
-- ordered collection of logical variables 
 
32
-- indicating whether a particular condition holds for each of a 
 
33
-- correspondingly ordered collection of objects.
 
34
 
 
35
DaysOfTheWeek ::=       BIT STRING {
 
36
                        sunday(0), monday (1), tuesday(2),
 
37
                        wednesday(3), thursday(4), friday(5),
 
38
                        saturday(6) } (SIZE (0..7))
 
39
 
 
40
sunnyDaysLastWeek1 DaysOfTheWeek ::= {sunday, monday, wednesday}
 
41
sunnyDaysLastWeek2 DaysOfTheWeek ::= '1101'B
 
42
sunnyDaysLastWeek3 DaysOfTheWeek ::= '1101000'B
 
43
sunnyDaysLastWeek4 DaysOfTheWeek ::= '11010000'B --  Illegal - violates size constraint
 
44
 
 
45
-- F.2.5.5      
 
46
-- Use a bit string type with named bits to model the values of a 
 
47
-- collection of related logical variables.
 
48
-- EXAMPLE
 
49
 
 
50
PersonalStatus ::= BIT STRING
 
51
                {married(0), employed(1), veteran(2), collegeGraduate(3)}
 
52
 
 
53
billClinton PersonalStatus ::= {married, employed, collegeGraduate}
 
54
hillaryClinton PersonalStatus ::= '110100'B
 
55
 
 
56
END