ByteArray.st
branchjv
changeset 19412 1e842c25e51e
parent 19354 ec77be1507a3
parent 19397 8962f82110e1
child 19431 3e697e4bcbf5
--- a/ByteArray.st	Tue Mar 22 08:03:27 2016 +0000
+++ b/ByteArray.st	Wed Mar 23 07:50:28 2016 +0000
@@ -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