ByteArray.st
changeset 23710 e340c313eeea
parent 22933 715902b93fa8
child 23800 0f0470940b33
--- a/ByteArray.st	Sun Feb 10 14:54:27 2019 +0100
+++ b/ByteArray.st	Sun Feb 10 14:54:30 2019 +0100
@@ -1,5 +1,3 @@
-"{ Encoding: utf8 }"
-
 "
  COPYRIGHT (c) 1989 by Claus Gittinger
 	      All Rights Reserved
@@ -167,6 +165,8 @@
 
 
 
+
+
 !ByteArray class methodsFor:'queries'!
 
 elementByteSize
@@ -202,6 +202,7 @@
 ! !
 
 
+
 !ByteArray methodsFor:'Compatibility-Squeak'!
 
 bitXor:aByteArray
@@ -2879,6 +2880,22 @@
     ^ false.
 !
 
+isEmpty
+    "return true if the receiver is empty (i.e. if size == 0)
+     Redefined here for performance"
+
+%{  /* NOCONTEXT */
+#ifndef __SCHTEAM__
+    if (__isByteArrayLike(self)) {
+        RETURN ( (__byteArraySize(self) == 0) ? true : false);
+    }
+#endif /* ! __SCHTEAM__ */
+%}.
+    ^ self size == 0
+
+    "Created: / 16-02-2017 / 15:02:03 / stefan"
+!
+
 isValidElement:anObject
     "return true, if I can hold this kind of object"
 
@@ -2927,6 +2944,22 @@
     "
 !
 
+notEmpty
+    "return true if the receiver is not empty (i.e. if size ~~ 0)
+     Redefined here for performance"
+
+%{  /* NOCONTEXT */
+#ifndef __SCHTEAM__
+    if (__isByteArrayLike(self)) {
+        RETURN ( (__byteArraySize(self) != 0) ? true : false);
+    }
+#endif /* ! __SCHTEAM__ */
+%}.
+    ^ self size ~~ 0
+
+    "Created: / 16-02-2017 / 15:02:36 / stefan"
+!
+
 startsWith:aByteOrByteArray
     "return true, if the receiver starts with something, aStringOrChar.
      If the argument is empty, true is returned.
@@ -3228,22 +3261,6 @@
 
 !
 
-isEmpty
-    "return true if the receiver is empty (i.e. if size == 0)
-     Redefined here for performance"
-
-%{  /* NOCONTEXT */
-#ifndef __SCHTEAM__
-    if (__isByteArrayLike(self)) {
-        RETURN ( (__byteArraySize(self) == 0) ? true : false);
-    }
-#endif /* ! __SCHTEAM__ */
-%}.
-    ^ self size == 0
-
-    "Created: / 16-02-2017 / 15:02:03 / stefan"
-!
-
 isLiteral
     "return true, if the receiver can be used as a literal constant in ST syntax
      (i.e. can be used in constant arrays)"
@@ -3255,24 +3272,9 @@
     ^ self class == ByteArray
 
     "Modified: 22.4.1996 / 12:55:30 / cg"
-!
-
-notEmpty
-    "return true if the receiver is not empty (i.e. if size ~~ 0)
-     Redefined here for performance"
-
-%{  /* NOCONTEXT */
-#ifndef __SCHTEAM__
-    if (__isByteArrayLike(self)) {
-        RETURN ( (__byteArraySize(self) != 0) ? true : false);
-    }
-#endif /* ! __SCHTEAM__ */
-%}.
-    ^ self size ~~ 0
-
-    "Created: / 16-02-2017 / 15:02:36 / stefan"
 ! !
 
+
 !ByteArray class methodsFor:'documentation'!
 
 version