--- a/ByteArray.st Tue Mar 22 12:35:39 2016 +0100
+++ b/ByteArray.st Tue Mar 22 12:47:08 2016 +0100
@@ -1,5 +1,3 @@
-"{ Encoding: utf8 }"
-
"
COPYRIGHT (c) 1989 by Claus Gittinger
All Rights Reserved
@@ -166,7 +164,6 @@
! !
-
!ByteArray class methodsFor:'queries'!
elementByteSize
@@ -187,7 +184,6 @@
"Modified: 23.4.1996 / 15:56:25 / cg"
! !
-
!ByteArray methodsFor:'Compatibility-Squeak'!
bitXor:aByteArray
@@ -1063,20 +1059,20 @@
!
asInteger
- "convert myself to an integer - the first byte is most significant.
+ "convert myself to an unsigned integer - the first byte is most significant.
This is also in Squeak."
^ self asIntegerMSB:true
"
- #[ 2 ] asInteger hexPrintString
- #[ 16r1 16r2 ] asInteger hexPrintString
- #[4 0 0 0 0 0 0 0] asInteger hexPrintString
+ #[ 2 ] asInteger hexPrintString
+ #[ 16r1 16r2 ] asInteger hexPrintString
+ #[4 0 0 0 0 0 0 0] asInteger hexPrintString
"
!
asIntegerMSB:isMSBFirst
- "convert myself to an integer - the first byte is most significant.
+ "convert myself to an unsigned integer - the first byte is most significant.
This is also in Squeak."
^ (LargeInteger digitBytes:self MSB:isMSBFirst) compressed
@@ -2983,6 +2979,7 @@
"
! !
+
!ByteArray methodsFor:'searching'!
indexOf:aByte startingAt:start