--- a/ByteArray.st Sun Jun 09 14:57:37 2019 +0200
+++ b/ByteArray.st Sun Jun 09 14:58:10 2019 +0200
@@ -167,8 +167,6 @@
-
-
!ByteArray class methodsFor:'queries'!
elementByteSize
@@ -204,8 +202,6 @@
! !
-
-
!ByteArray methodsFor:'Compatibility-Squeak'!
bitXor:aByteArray
@@ -1249,8 +1245,10 @@
!
beSigned
- "make mayself signed.
- elements > 127 are converted to negative numbers."
+ "destructively make mayself signed.
+ elements > 127 are converted to negative numbers.
+ WARNING: this changes the receiver itself
+ - use this only for initialization of new instances"
self class == ByteArray ifTrue:[
self changeClassTo:SignedByteArray.
@@ -1259,8 +1257,11 @@
].
"
- #[ 1 2 3 128 255] copy beSigned
+ #[ 1 2 3 128 255 ] copy beSigned
+ #[ 1 2 3 128 255 ] beImmutable beSigned
"
+
+ "Modified: / 09-06-2019 / 14:57:56 / Claus Gittinger"
!
beUnsigned
@@ -1272,8 +1273,10 @@
self shouldNotImplement.
"
- #[ 1 2 3 128 255] copy beUnsigned
+ #[ 1 2 3 128 255 ] copy beUnsigned
"
+
+ "Modified (comment): / 09-06-2019 / 14:52:12 / Claus Gittinger"
!
decodeAsLiteralArray
@@ -3297,7 +3300,6 @@
"Modified: 22.4.1996 / 12:55:30 / cg"
! !
-
!ByteArray class methodsFor:'documentation'!
version