ImmutableByteArray.st
author Claus Gittinger <cg@exept.de>
Thu, 03 Aug 2017 16:41:13 +0200
changeset 22159 c8f19ee3f888
parent 21648 bde0d970dcf3
child 22649 ad0f62637e91
permissions -rw-r--r--
#FEATURE by cg class: ExternalBytes added: #isNull
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
12469
bf6f0881354f added: #copyright
Claus Gittinger <cg@exept.de>
parents: 12465
diff changeset
     1
"
bf6f0881354f added: #copyright
Claus Gittinger <cg@exept.de>
parents: 12465
diff changeset
     2
 COPYRIGHT (c) 2009 by eXept Software AG
12538
e6bf8c42e1d4 Moved to libbasic from libcomp - change package name
Stefan Vogel <sv@exept.de>
parents: 12493
diff changeset
     3
	      All Rights Reserved
12469
bf6f0881354f added: #copyright
Claus Gittinger <cg@exept.de>
parents: 12465
diff changeset
     4
bf6f0881354f added: #copyright
Claus Gittinger <cg@exept.de>
parents: 12465
diff changeset
     5
 This software is furnished under a license and may be used
bf6f0881354f added: #copyright
Claus Gittinger <cg@exept.de>
parents: 12465
diff changeset
     6
 only in accordance with the terms of that license and with the
bf6f0881354f added: #copyright
Claus Gittinger <cg@exept.de>
parents: 12465
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
bf6f0881354f added: #copyright
Claus Gittinger <cg@exept.de>
parents: 12465
diff changeset
     8
 be provided or otherwise made available to, or used by, any
bf6f0881354f added: #copyright
Claus Gittinger <cg@exept.de>
parents: 12465
diff changeset
     9
 other person.  No title to or ownership of the software is
bf6f0881354f added: #copyright
Claus Gittinger <cg@exept.de>
parents: 12465
diff changeset
    10
 hereby transferred.
bf6f0881354f added: #copyright
Claus Gittinger <cg@exept.de>
parents: 12465
diff changeset
    11
"
12538
e6bf8c42e1d4 Moved to libbasic from libcomp - change package name
Stefan Vogel <sv@exept.de>
parents: 12493
diff changeset
    12
"{ Package: 'stx:libbasic' }"
12456
5e084695631f initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    13
17374
a58160e9e232 initial checkin
Stefan Vogel <sv@exept.de>
parents: 16823
diff changeset
    14
"{ NameSpace: Smalltalk }"
a58160e9e232 initial checkin
Stefan Vogel <sv@exept.de>
parents: 16823
diff changeset
    15
12456
5e084695631f initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    16
ByteArray variableByteSubclass:#ImmutableByteArray
5e084695631f initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    17
	instanceVariableNames:''
5e084695631f initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    18
	classVariableNames:''
5e084695631f initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    19
	poolDictionaries:''
5e084695631f initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    20
	category:'System-Compiler-Support'
5e084695631f initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    21
!
5e084695631f initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    22
12465
3ad76cb3da62 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 12456
diff changeset
    23
!ImmutableByteArray class methodsFor:'documentation'!
3ad76cb3da62 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 12456
diff changeset
    24
12469
bf6f0881354f added: #copyright
Claus Gittinger <cg@exept.de>
parents: 12465
diff changeset
    25
copyright
bf6f0881354f added: #copyright
Claus Gittinger <cg@exept.de>
parents: 12465
diff changeset
    26
"
bf6f0881354f added: #copyright
Claus Gittinger <cg@exept.de>
parents: 12465
diff changeset
    27
 COPYRIGHT (c) 2009 by eXept Software AG
12538
e6bf8c42e1d4 Moved to libbasic from libcomp - change package name
Stefan Vogel <sv@exept.de>
parents: 12493
diff changeset
    28
	      All Rights Reserved
12469
bf6f0881354f added: #copyright
Claus Gittinger <cg@exept.de>
parents: 12465
diff changeset
    29
bf6f0881354f added: #copyright
Claus Gittinger <cg@exept.de>
parents: 12465
diff changeset
    30
 This software is furnished under a license and may be used
bf6f0881354f added: #copyright
Claus Gittinger <cg@exept.de>
parents: 12465
diff changeset
    31
 only in accordance with the terms of that license and with the
bf6f0881354f added: #copyright
Claus Gittinger <cg@exept.de>
parents: 12465
diff changeset
    32
 inclusion of the above copyright notice.   This software may not
bf6f0881354f added: #copyright
Claus Gittinger <cg@exept.de>
parents: 12465
diff changeset
    33
 be provided or otherwise made available to, or used by, any
bf6f0881354f added: #copyright
Claus Gittinger <cg@exept.de>
parents: 12465
diff changeset
    34
 other person.  No title to or ownership of the software is
bf6f0881354f added: #copyright
Claus Gittinger <cg@exept.de>
parents: 12465
diff changeset
    35
 hereby transferred.
bf6f0881354f added: #copyright
Claus Gittinger <cg@exept.de>
parents: 12465
diff changeset
    36
"
bf6f0881354f added: #copyright
Claus Gittinger <cg@exept.de>
parents: 12465
diff changeset
    37
!
bf6f0881354f added: #copyright
Claus Gittinger <cg@exept.de>
parents: 12465
diff changeset
    38
12465
3ad76cb3da62 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 12456
diff changeset
    39
documentation
3ad76cb3da62 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 12456
diff changeset
    40
"
3ad76cb3da62 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 12456
diff changeset
    41
    By default, byte array literals in smalltalk are mutable objects. That
3ad76cb3da62 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 12456
diff changeset
    42
    may lead to some subtle (and hard to find errors), if some method passes
3ad76cb3da62 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 12456
diff changeset
    43
    a literal byte-array object as argument to someone else, who changes the
12538
e6bf8c42e1d4 Moved to libbasic from libcomp - change package name
Stefan Vogel <sv@exept.de>
parents: 12493
diff changeset
    44
    bytearray using at:put: like messages. Since the bytearray object is kept in
12465
3ad76cb3da62 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 12456
diff changeset
    45
    the first methods literals, the bytearray constant has now been changed without
3ad76cb3da62 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 12456
diff changeset
    46
    having the method's sourcecode reflect this. Thus, the method will
3ad76cb3da62 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 12456
diff changeset
    47
    behave differently from what its source may make you think.
3ad76cb3da62 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 12456
diff changeset
    48
3ad76cb3da62 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 12456
diff changeset
    49
    To help finding this kind of 'feature/bug', the compiler can be
3ad76cb3da62 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 12456
diff changeset
    50
    configured to create instances of this ImmutableByteArray instead of ByteArrays
3ad76cb3da62 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 12456
diff changeset
    51
    for literals. Instances of ImmutableByteArray catch storing accesses and
3ad76cb3da62 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 12456
diff changeset
    52
    enter the debugger. Although useful, this feature is disabled by default
12538
e6bf8c42e1d4 Moved to libbasic from libcomp - change package name
Stefan Vogel <sv@exept.de>
parents: 12493
diff changeset
    53
    for compatibility to other smalltalk implementations.
12465
3ad76cb3da62 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 12456
diff changeset
    54
    (Also, if turned on, this makes inspecting bytearray literals entered in
3ad76cb3da62 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 12456
diff changeset
    55
     a workspace somewhat strange: you cannot modify it any longer).
3ad76cb3da62 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 12456
diff changeset
    56
3ad76cb3da62 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 12456
diff changeset
    57
    Turn the ImmutableArray feature on, by setting the Parser's class variable
3ad76cb3da62 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 12456
diff changeset
    58
    'ArraysAreImmutable' to true or use the new launchers settings menu.
3ad76cb3da62 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 12456
diff changeset
    59
18545
bf6afb06b38a class: ImmutableByteArray
Stefan Vogel <sv@exept.de>
parents: 17536
diff changeset
    60
    This class should be used only by the compiler.
bf6afb06b38a class: ImmutableByteArray
Stefan Vogel <sv@exept.de>
parents: 17536
diff changeset
    61
12472
4538fa289fda added: #copyright
Claus Gittinger <cg@exept.de>
parents: 12469
diff changeset
    62
    ATTENTION:
14223
c785723e9f63 changed: #documentation
Stefan Vogel <sv@exept.de>
parents: 14114
diff changeset
    63
        there may be still code around which checks for explicit class being ByteArray
c785723e9f63 changed: #documentation
Stefan Vogel <sv@exept.de>
parents: 14114
diff changeset
    64
        (both in Smalltalk and in primitive code). All code like foo 'class == ByteArray'
c785723e9f63 changed: #documentation
Stefan Vogel <sv@exept.de>
parents: 14114
diff changeset
    65
        or '__isByteArray()' will not work with ImmutableByteArrays - consider using '__isByteArrayLike()'.
c785723e9f63 changed: #documentation
Stefan Vogel <sv@exept.de>
parents: 14114
diff changeset
    66
        A somewhat better approach would be to either add a flag to the object (mutability)
c785723e9f63 changed: #documentation
Stefan Vogel <sv@exept.de>
parents: 14114
diff changeset
    67
        and check this dynamically (expensive) or to place immutable objects into a readonly
c785723e9f63 changed: #documentation
Stefan Vogel <sv@exept.de>
parents: 14114
diff changeset
    68
        memory segment (the good solution). We will eventually implement the second in the future...
12472
4538fa289fda added: #copyright
Claus Gittinger <cg@exept.de>
parents: 12469
diff changeset
    69
12465
3ad76cb3da62 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 12456
diff changeset
    70
    [see also:]
14223
c785723e9f63 changed: #documentation
Stefan Vogel <sv@exept.de>
parents: 14114
diff changeset
    71
        ImmutableString
c785723e9f63 changed: #documentation
Stefan Vogel <sv@exept.de>
parents: 14114
diff changeset
    72
        ImmutableArray
c785723e9f63 changed: #documentation
Stefan Vogel <sv@exept.de>
parents: 14114
diff changeset
    73
        Parser Scanner
12465
3ad76cb3da62 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 12456
diff changeset
    74
3ad76cb3da62 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 12456
diff changeset
    75
    [author:]
14223
c785723e9f63 changed: #documentation
Stefan Vogel <sv@exept.de>
parents: 14114
diff changeset
    76
        Claus Gittinger
12465
3ad76cb3da62 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 12456
diff changeset
    77
"
3ad76cb3da62 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 12456
diff changeset
    78
! !
12456
5e084695631f initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    79
21648
bde0d970dcf3 #FEATURE by stefan
Stefan Vogel <sv@exept.de>
parents: 21547
diff changeset
    80
!ImmutableByteArray class methodsFor:'instance creation'!
bde0d970dcf3 #FEATURE by stefan
Stefan Vogel <sv@exept.de>
parents: 21547
diff changeset
    81
bde0d970dcf3 #FEATURE by stefan
Stefan Vogel <sv@exept.de>
parents: 21547
diff changeset
    82
fromPackedString:aString
bde0d970dcf3 #FEATURE by stefan
Stefan Vogel <sv@exept.de>
parents: 21547
diff changeset
    83
    ^ (ByteArray fromPackedString:aString) beImmutable.
bde0d970dcf3 #FEATURE by stefan
Stefan Vogel <sv@exept.de>
parents: 21547
diff changeset
    84
bde0d970dcf3 #FEATURE by stefan
Stefan Vogel <sv@exept.de>
parents: 21547
diff changeset
    85
    "Created: / 15-03-2017 / 17:55:57 / stefan"
bde0d970dcf3 #FEATURE by stefan
Stefan Vogel <sv@exept.de>
parents: 21547
diff changeset
    86
! !
bde0d970dcf3 #FEATURE by stefan
Stefan Vogel <sv@exept.de>
parents: 21547
diff changeset
    87
17374
a58160e9e232 initial checkin
Stefan Vogel <sv@exept.de>
parents: 16823
diff changeset
    88
!ImmutableByteArray class methodsFor:'queries'!
a58160e9e232 initial checkin
Stefan Vogel <sv@exept.de>
parents: 16823
diff changeset
    89
a58160e9e232 initial checkin
Stefan Vogel <sv@exept.de>
parents: 16823
diff changeset
    90
mutableClass
a58160e9e232 initial checkin
Stefan Vogel <sv@exept.de>
parents: 16823
diff changeset
    91
    "answer an equivalent mustable class"
a58160e9e232 initial checkin
Stefan Vogel <sv@exept.de>
parents: 16823
diff changeset
    92
a58160e9e232 initial checkin
Stefan Vogel <sv@exept.de>
parents: 16823
diff changeset
    93
    ^ ByteArray
a58160e9e232 initial checkin
Stefan Vogel <sv@exept.de>
parents: 16823
diff changeset
    94
! !
a58160e9e232 initial checkin
Stefan Vogel <sv@exept.de>
parents: 16823
diff changeset
    95
a58160e9e232 initial checkin
Stefan Vogel <sv@exept.de>
parents: 16823
diff changeset
    96
!ImmutableByteArray class methodsFor:'testing'!
a58160e9e232 initial checkin
Stefan Vogel <sv@exept.de>
parents: 16823
diff changeset
    97
a58160e9e232 initial checkin
Stefan Vogel <sv@exept.de>
parents: 16823
diff changeset
    98
hasImmutableInstances
a58160e9e232 initial checkin
Stefan Vogel <sv@exept.de>
parents: 16823
diff changeset
    99
    ^ true
a58160e9e232 initial checkin
Stefan Vogel <sv@exept.de>
parents: 16823
diff changeset
   100
! !
a58160e9e232 initial checkin
Stefan Vogel <sv@exept.de>
parents: 16823
diff changeset
   101
12456
5e084695631f initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   102
!ImmutableByteArray methodsFor:'accessing'!
5e084695631f initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   103
12538
e6bf8c42e1d4 Moved to libbasic from libcomp - change package name
Stefan Vogel <sv@exept.de>
parents: 12493
diff changeset
   104
at:index put:value
12456
5e084695631f initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   105
    "Trigger an error if an immutable bytearray is stored into.
5e084695631f initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   106
     The store will be performed (for compatibility reasons) if you continue
19421
08358cad9dbe #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19175
diff changeset
   107
     in the debugger (or proceed in an exception handler)."
12538
e6bf8c42e1d4 Moved to libbasic from libcomp - change package name
Stefan Vogel <sv@exept.de>
parents: 12493
diff changeset
   108
12493
a8a69ca4a721 Raise NoModificationError
Stefan Vogel <sv@exept.de>
parents: 12488
diff changeset
   109
    self noModificationError.
12456
5e084695631f initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   110
    ^ super at:index put:value
5e084695631f initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   111
!
5e084695631f initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   112
12538
e6bf8c42e1d4 Moved to libbasic from libcomp - change package name
Stefan Vogel <sv@exept.de>
parents: 12493
diff changeset
   113
basicAt:index put:value
12456
5e084695631f initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   114
    "Trigger an error if an immutable bytearray is stored into.
5e084695631f initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   115
     The store will be performed (for compatibility reasons) if you continue
19421
08358cad9dbe #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19175
diff changeset
   116
     in the debugger (or proceed in an exception handler)."
12538
e6bf8c42e1d4 Moved to libbasic from libcomp - change package name
Stefan Vogel <sv@exept.de>
parents: 12493
diff changeset
   117
12493
a8a69ca4a721 Raise NoModificationError
Stefan Vogel <sv@exept.de>
parents: 12488
diff changeset
   118
    self noModificationError.
12456
5e084695631f initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   119
    ^ super basicAt:index put:value
19421
08358cad9dbe #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19175
diff changeset
   120
!
08358cad9dbe #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19175
diff changeset
   121
08358cad9dbe #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19175
diff changeset
   122
byteAt:index put:value
08358cad9dbe #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19175
diff changeset
   123
    "Trigger an error if an immutable bytearray is stored into.
08358cad9dbe #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19175
diff changeset
   124
     The store will be performed (for compatibility reasons) if you continue
08358cad9dbe #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19175
diff changeset
   125
     in the debugger (or proceed in an exception handler)."
08358cad9dbe #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19175
diff changeset
   126
08358cad9dbe #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19175
diff changeset
   127
    self noModificationError.
08358cad9dbe #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19175
diff changeset
   128
    ^ super byteAt:index put:value
08358cad9dbe #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19175
diff changeset
   129
!
08358cad9dbe #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19175
diff changeset
   130
08358cad9dbe #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19175
diff changeset
   131
unsignedInt16At:index put:anInteger
08358cad9dbe #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19175
diff changeset
   132
    "Trigger an error if an immutable bytearray is stored into.
08358cad9dbe #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19175
diff changeset
   133
     The store will be performed (for compatibility reasons) if you continue
08358cad9dbe #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19175
diff changeset
   134
     in the debugger (or proceed in an exception handler)."
08358cad9dbe #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19175
diff changeset
   135
08358cad9dbe #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19175
diff changeset
   136
    self noModificationError.
08358cad9dbe #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19175
diff changeset
   137
    ^ super unsignedInt16At:index put:anInteger
08358cad9dbe #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19175
diff changeset
   138
!
08358cad9dbe #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19175
diff changeset
   139
08358cad9dbe #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19175
diff changeset
   140
unsignedInt16At:index put:anInteger MSB:msb
08358cad9dbe #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19175
diff changeset
   141
    "Trigger an error if an immutable bytearray is stored into.
08358cad9dbe #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19175
diff changeset
   142
     The store will be performed (for compatibility reasons) if you continue
08358cad9dbe #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19175
diff changeset
   143
     in the debugger (or proceed in an exception handler)."
08358cad9dbe #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19175
diff changeset
   144
08358cad9dbe #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19175
diff changeset
   145
    self noModificationError.
08358cad9dbe #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19175
diff changeset
   146
    ^ super unsignedInt16At:index put:anInteger MSB:msb
08358cad9dbe #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19175
diff changeset
   147
!
08358cad9dbe #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19175
diff changeset
   148
08358cad9dbe #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19175
diff changeset
   149
unsignedInt32At:index put:anInteger
08358cad9dbe #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19175
diff changeset
   150
    "Trigger an error if an immutable bytearray is stored into.
08358cad9dbe #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19175
diff changeset
   151
     The store will be performed (for compatibility reasons) if you continue
08358cad9dbe #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19175
diff changeset
   152
     in the debugger (or proceed in an exception handler)."
08358cad9dbe #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19175
diff changeset
   153
08358cad9dbe #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19175
diff changeset
   154
    self noModificationError.
08358cad9dbe #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19175
diff changeset
   155
    ^ super unsignedInt32At:index put:anInteger
08358cad9dbe #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19175
diff changeset
   156
!
08358cad9dbe #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19175
diff changeset
   157
08358cad9dbe #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19175
diff changeset
   158
unsignedInt32At:index put:anInteger MSB:msb
08358cad9dbe #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19175
diff changeset
   159
    "Trigger an error if an immutable bytearray is stored into.
08358cad9dbe #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19175
diff changeset
   160
     The store will be performed (for compatibility reasons) if you continue
08358cad9dbe #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19175
diff changeset
   161
     in the debugger (or proceed in an exception handler)."
08358cad9dbe #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19175
diff changeset
   162
08358cad9dbe #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19175
diff changeset
   163
    self noModificationError.
08358cad9dbe #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19175
diff changeset
   164
    ^ super unsignedInt32At:index put:anInteger MSB:msb
08358cad9dbe #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19175
diff changeset
   165
!
08358cad9dbe #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19175
diff changeset
   166
08358cad9dbe #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19175
diff changeset
   167
unsignedInt64At:index put:anInteger
08358cad9dbe #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19175
diff changeset
   168
    "Trigger an error if an immutable bytearray is stored into.
08358cad9dbe #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19175
diff changeset
   169
     The store will be performed (for compatibility reasons) if you continue
08358cad9dbe #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19175
diff changeset
   170
     in the debugger (or proceed in an exception handler)."
08358cad9dbe #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19175
diff changeset
   171
08358cad9dbe #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19175
diff changeset
   172
    self noModificationError.
08358cad9dbe #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19175
diff changeset
   173
    ^ super unsignedInt64At:index put:anInteger
08358cad9dbe #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19175
diff changeset
   174
!
08358cad9dbe #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19175
diff changeset
   175
08358cad9dbe #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19175
diff changeset
   176
unsignedInt64At:index put:anInteger MSB:msb
08358cad9dbe #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19175
diff changeset
   177
    "Trigger an error if an immutable bytearray is stored into.
08358cad9dbe #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19175
diff changeset
   178
     The store will be performed (for compatibility reasons) if you continue
08358cad9dbe #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19175
diff changeset
   179
     in the debugger (or proceed in an exception handler)."
08358cad9dbe #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19175
diff changeset
   180
08358cad9dbe #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19175
diff changeset
   181
    self noModificationError.
08358cad9dbe #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19175
diff changeset
   182
    ^ super unsignedInt64At:index put:anInteger MSB:msb
12456
5e084695631f initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   183
! !
5e084695631f initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   184
5e084695631f initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   185
!ImmutableByteArray methodsFor:'converting'!
5e084695631f initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   186
12488
889416ab718a more immutability stuff
Claus Gittinger <cg@exept.de>
parents: 12472
diff changeset
   187
asByteArray
889416ab718a more immutability stuff
Claus Gittinger <cg@exept.de>
parents: 12472
diff changeset
   188
    "return the receiver as a (mutable) byteArray"
889416ab718a more immutability stuff
Claus Gittinger <cg@exept.de>
parents: 12472
diff changeset
   189
19421
08358cad9dbe #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19175
diff changeset
   190
    ^ self shallowCopy
12488
889416ab718a more immutability stuff
Claus Gittinger <cg@exept.de>
parents: 12472
diff changeset
   191
889416ab718a more immutability stuff
Claus Gittinger <cg@exept.de>
parents: 12472
diff changeset
   192
    "
12538
e6bf8c42e1d4 Moved to libbasic from libcomp - change package name
Stefan Vogel <sv@exept.de>
parents: 12493
diff changeset
   193
     #[1 2 3 4] asImmutableByteArray asByteArray
12488
889416ab718a more immutability stuff
Claus Gittinger <cg@exept.de>
parents: 12472
diff changeset
   194
    "
889416ab718a more immutability stuff
Claus Gittinger <cg@exept.de>
parents: 12472
diff changeset
   195
!
889416ab718a more immutability stuff
Claus Gittinger <cg@exept.de>
parents: 12472
diff changeset
   196
12456
5e084695631f initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   197
asImmutableByteArray
19421
08358cad9dbe #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19175
diff changeset
   198
    "that's what I am-"
08358cad9dbe #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19175
diff changeset
   199
12456
5e084695631f initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   200
    ^ self
16823
48a3b8612594 added asMutableCollection
Claus Gittinger <cg@exept.de>
parents: 16749
diff changeset
   201
!
48a3b8612594 added asMutableCollection
Claus Gittinger <cg@exept.de>
parents: 16749
diff changeset
   202
48a3b8612594 added asMutableCollection
Claus Gittinger <cg@exept.de>
parents: 16749
diff changeset
   203
asMutableCollection
48a3b8612594 added asMutableCollection
Claus Gittinger <cg@exept.de>
parents: 16749
diff changeset
   204
    "return a writable copy of myself"
48a3b8612594 added asMutableCollection
Claus Gittinger <cg@exept.de>
parents: 16749
diff changeset
   205
19421
08358cad9dbe #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19175
diff changeset
   206
    ^ self shallowCopy
19175
03a070a3c83f #REFACTORING
Stefan Vogel <sv@exept.de>
parents: 18703
diff changeset
   207
!
03a070a3c83f #REFACTORING
Stefan Vogel <sv@exept.de>
parents: 18703
diff changeset
   208
03a070a3c83f #REFACTORING
Stefan Vogel <sv@exept.de>
parents: 18703
diff changeset
   209
beImmutable
03a070a3c83f #REFACTORING
Stefan Vogel <sv@exept.de>
parents: 18703
diff changeset
   210
    "that's what I am"
03a070a3c83f #REFACTORING
Stefan Vogel <sv@exept.de>
parents: 18703
diff changeset
   211
03a070a3c83f #REFACTORING
Stefan Vogel <sv@exept.de>
parents: 18703
diff changeset
   212
    ^ self
03a070a3c83f #REFACTORING
Stefan Vogel <sv@exept.de>
parents: 18703
diff changeset
   213
!
03a070a3c83f #REFACTORING
Stefan Vogel <sv@exept.de>
parents: 18703
diff changeset
   214
20524
6b3c5f464f78 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 19421
diff changeset
   215
beMutable
6b3c5f464f78 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 19421
diff changeset
   216
    "you never go back"
6b3c5f464f78 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 19421
diff changeset
   217
6b3c5f464f78 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 19421
diff changeset
   218
    ^ self shouldNotImplement
6b3c5f464f78 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 19421
diff changeset
   219
!
6b3c5f464f78 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 19421
diff changeset
   220
19175
03a070a3c83f #REFACTORING
Stefan Vogel <sv@exept.de>
parents: 18703
diff changeset
   221
beUnsigned
03a070a3c83f #REFACTORING
Stefan Vogel <sv@exept.de>
parents: 18703
diff changeset
   222
    "that's what I am-"
03a070a3c83f #REFACTORING
Stefan Vogel <sv@exept.de>
parents: 18703
diff changeset
   223
03a070a3c83f #REFACTORING
Stefan Vogel <sv@exept.de>
parents: 18703
diff changeset
   224
    ^ self.
03a070a3c83f #REFACTORING
Stefan Vogel <sv@exept.de>
parents: 18703
diff changeset
   225
03a070a3c83f #REFACTORING
Stefan Vogel <sv@exept.de>
parents: 18703
diff changeset
   226
    "
03a070a3c83f #REFACTORING
Stefan Vogel <sv@exept.de>
parents: 18703
diff changeset
   227
        #[1 2 3 128 255] asImmutableByteArray beUnsigned
03a070a3c83f #REFACTORING
Stefan Vogel <sv@exept.de>
parents: 18703
diff changeset
   228
    "
12456
5e084695631f initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   229
! !
5e084695631f initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   230
5e084695631f initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   231
!ImmutableByteArray methodsFor:'copying'!
5e084695631f initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   232
5e084695631f initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   233
postCopy
5e084695631f initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   234
    "when copied, make me a real (mutable) ByteArray"
5e084695631f initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   235
5e084695631f initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   236
    self changeClassTo:ByteArray.
5e084695631f initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   237
!
5e084695631f initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   238
5e084695631f initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   239
postDeepCopy
5e084695631f initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   240
    "when copied, make me a real (mutable) ByteArray"
5e084695631f initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   241
5e084695631f initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   242
    self changeClassTo:ByteArray.
5e084695631f initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   243
5e084695631f initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   244
    "
5e084695631f initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   245
     #[1 2 3 4] asImmutableByteArray copy          class
5e084695631f initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   246
     #[1 2 3 4] asImmutableByteArray shallowCopy   class
5e084695631f initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   247
     #[1 2 3 4] asImmutableByteArray deepCopy      class
5e084695631f initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   248
    "
5e084695631f initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   249
!
5e084695631f initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   250
5e084695631f initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   251
shallowCopy
5e084695631f initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   252
    "when copying, return a real (mutable) ByteArray"
5e084695631f initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   253
5e084695631f initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   254
    |sz|
5e084695631f initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   255
5e084695631f initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   256
    sz := self size.
16399
b8933f4d84cc class: ImmutableByteArray
Claus Gittinger <cg@exept.de>
parents: 14388
diff changeset
   257
    ^ (ByteArray new:sz) replaceBytesFrom:1 to:sz with:self startingAt:1
14114
e18145c4ab7f comment/format in: #shallowCopy
Stefan Vogel <sv@exept.de>
parents: 14024
diff changeset
   258
e18145c4ab7f comment/format in: #shallowCopy
Stefan Vogel <sv@exept.de>
parents: 14024
diff changeset
   259
    "
e18145c4ab7f comment/format in: #shallowCopy
Stefan Vogel <sv@exept.de>
parents: 14024
diff changeset
   260
     #[1 2 3 4] asImmutableByteArray shallowCopy
e18145c4ab7f comment/format in: #shallowCopy
Stefan Vogel <sv@exept.de>
parents: 14024
diff changeset
   261
    "
12456
5e084695631f initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   262
! !
5e084695631f initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   263
16749
5339adc5586a class: ImmutableByteArray
Claus Gittinger <cg@exept.de>
parents: 16399
diff changeset
   264
!ImmutableByteArray methodsFor:'printing & storing'!
5339adc5586a class: ImmutableByteArray
Claus Gittinger <cg@exept.de>
parents: 16399
diff changeset
   265
5339adc5586a class: ImmutableByteArray
Claus Gittinger <cg@exept.de>
parents: 16399
diff changeset
   266
displayOn:aGCOrStream
17536
950f6d65e102 class: ImmutableByteArray
Claus Gittinger <cg@exept.de>
parents: 17374
diff changeset
   267
    "/ what a kludge - Dolphin and Squeak mean: printOn: a stream;
21547
db8ecbc94e1d #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20524
diff changeset
   268
    "/ old ST80 means: draw-yourself on a GC.
db8ecbc94e1d #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20524
diff changeset
   269
    aGCOrStream isStream ifFalse:[
db8ecbc94e1d #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20524
diff changeset
   270
        ^ super displayOn:aGCOrStream.
16749
5339adc5586a class: ImmutableByteArray
Claus Gittinger <cg@exept.de>
parents: 16399
diff changeset
   271
    ].
21547
db8ecbc94e1d #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20524
diff changeset
   272
    
db8ecbc94e1d #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20524
diff changeset
   273
    self storeOn:aGCOrStream.
db8ecbc94e1d #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20524
diff changeset
   274
    aGCOrStream nextPutAll:'"immutable"'.
db8ecbc94e1d #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20524
diff changeset
   275
db8ecbc94e1d #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20524
diff changeset
   276
    "Modified (format): / 22-02-2017 / 16:58:38 / cg"
16749
5339adc5586a class: ImmutableByteArray
Claus Gittinger <cg@exept.de>
parents: 16399
diff changeset
   277
! !
5339adc5586a class: ImmutableByteArray
Claus Gittinger <cg@exept.de>
parents: 16399
diff changeset
   278
12456
5e084695631f initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   279
!ImmutableByteArray methodsFor:'private'!
5e084695631f initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   280
5e084695631f initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   281
species
5e084695631f initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   282
    "Copies should be mutable"
5e084695631f initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   283
5e084695631f initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   284
    ^ ByteArray
16399
b8933f4d84cc class: ImmutableByteArray
Claus Gittinger <cg@exept.de>
parents: 14388
diff changeset
   285
!
b8933f4d84cc class: ImmutableByteArray
Claus Gittinger <cg@exept.de>
parents: 14388
diff changeset
   286
b8933f4d84cc class: ImmutableByteArray
Claus Gittinger <cg@exept.de>
parents: 14388
diff changeset
   287
speciesForCopy
b8933f4d84cc class: ImmutableByteArray
Claus Gittinger <cg@exept.de>
parents: 14388
diff changeset
   288
    "Copies should be mutable"
b8933f4d84cc class: ImmutableByteArray
Claus Gittinger <cg@exept.de>
parents: 14388
diff changeset
   289
b8933f4d84cc class: ImmutableByteArray
Claus Gittinger <cg@exept.de>
parents: 14388
diff changeset
   290
    ^ ByteArray
12456
5e084695631f initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   291
! !
5e084695631f initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   292
5e084695631f initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   293
!ImmutableByteArray methodsFor:'queries'!
5e084695631f initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   294
14388
44305237837b isImmutable
Claus Gittinger <cg@exept.de>
parents: 14223
diff changeset
   295
isImmutable
44305237837b isImmutable
Claus Gittinger <cg@exept.de>
parents: 14223
diff changeset
   296
    ^ true
44305237837b isImmutable
Claus Gittinger <cg@exept.de>
parents: 14223
diff changeset
   297
!
44305237837b isImmutable
Claus Gittinger <cg@exept.de>
parents: 14223
diff changeset
   298
12456
5e084695631f initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   299
isLiteral
5e084695631f initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   300
    "return true, if the receiver can be used as a literal constant in ST syntax
5e084695631f initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   301
     (i.e. can be used in constant arrays)"
5e084695631f initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   302
5e084695631f initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   303
    "yes, I must be"
5e084695631f initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   304
    ^ true
5e084695631f initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   305
5e084695631f initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   306
! !
5e084695631f initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   307
5e084695631f initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   308
!ImmutableByteArray methodsFor:'specials'!
5e084695631f initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   309
12538
e6bf8c42e1d4 Moved to libbasic from libcomp - change package name
Stefan Vogel <sv@exept.de>
parents: 12493
diff changeset
   310
become:anotherObject
12456
5e084695631f initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   311
    "trigger an error if I should become something else
5e084695631f initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   312
     (this would be an even more tricky manipulation)"
12538
e6bf8c42e1d4 Moved to libbasic from libcomp - change package name
Stefan Vogel <sv@exept.de>
parents: 12493
diff changeset
   313
12493
a8a69ca4a721 Raise NoModificationError
Stefan Vogel <sv@exept.de>
parents: 12488
diff changeset
   314
    self noModificationError.
12456
5e084695631f initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   315
    ^ super become:anotherObject
5e084695631f initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   316
!
5e084695631f initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   317
5e084695631f initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   318
becomeNil
5e084695631f initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   319
    "trigger an error if I should become nil
5e084695631f initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   320
     (this would be an even more tricky manipulation)"
12538
e6bf8c42e1d4 Moved to libbasic from libcomp - change package name
Stefan Vogel <sv@exept.de>
parents: 12493
diff changeset
   321
12493
a8a69ca4a721 Raise NoModificationError
Stefan Vogel <sv@exept.de>
parents: 12488
diff changeset
   322
    self noModificationError.
12456
5e084695631f initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   323
    ^ super becomeNil
18703
a2887ae5eca8 class: ImmutableByteArray
Stefan Vogel <sv@exept.de>
parents: 18614
diff changeset
   324
!
a2887ae5eca8 class: ImmutableByteArray
Stefan Vogel <sv@exept.de>
parents: 18614
diff changeset
   325
a2887ae5eca8 class: ImmutableByteArray
Stefan Vogel <sv@exept.de>
parents: 18614
diff changeset
   326
becomeSameAs:anotherObject
a2887ae5eca8 class: ImmutableByteArray
Stefan Vogel <sv@exept.de>
parents: 18614
diff changeset
   327
    "trigger an error if I should become something else
a2887ae5eca8 class: ImmutableByteArray
Stefan Vogel <sv@exept.de>
parents: 18614
diff changeset
   328
     (this would be an even more tricky manipulation)"
a2887ae5eca8 class: ImmutableByteArray
Stefan Vogel <sv@exept.de>
parents: 18614
diff changeset
   329
a2887ae5eca8 class: ImmutableByteArray
Stefan Vogel <sv@exept.de>
parents: 18614
diff changeset
   330
    self noModificationError.
a2887ae5eca8 class: ImmutableByteArray
Stefan Vogel <sv@exept.de>
parents: 18614
diff changeset
   331
    ^ super becomeSameAs:anotherObject
12456
5e084695631f initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   332
! !
5e084695631f initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   333
5e084695631f initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   334
!ImmutableByteArray class methodsFor:'documentation'!
5e084695631f initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   335
5e084695631f initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   336
version_CVS
18545
bf6afb06b38a class: ImmutableByteArray
Stefan Vogel <sv@exept.de>
parents: 17536
diff changeset
   337
    ^ '$Header$'
12456
5e084695631f initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   338
! !
16399
b8933f4d84cc class: ImmutableByteArray
Claus Gittinger <cg@exept.de>
parents: 14388
diff changeset
   339