equal
deleted
inserted
replaced
161 ^ self basicNew:anInteger |
161 ^ self basicNew:anInteger |
162 ! ! |
162 ! ! |
163 |
163 |
164 |
164 |
165 |
165 |
|
166 |
|
167 |
166 !ByteArray class methodsFor:'queries'! |
168 !ByteArray class methodsFor:'queries'! |
|
169 |
|
170 elementByteSize |
|
171 ^ 1 |
|
172 |
|
173 "Created: / 15-09-2011 / 14:12:53 / cg" |
|
174 ! |
167 |
175 |
168 isBuiltInClass |
176 isBuiltInClass |
169 "return true if this class is known by the run-time-system. |
177 "return true if this class is known by the run-time-system. |
170 Here, true is returned for myself, false for subclasses." |
178 Here, true is returned for myself, false for subclasses." |
171 |
179 |
172 ^ self == ByteArray |
180 ^ self == ByteArray |
173 |
181 |
174 "Modified: 23.4.1996 / 15:56:25 / cg" |
182 "Modified: 23.4.1996 / 15:56:25 / cg" |
175 ! ! |
183 ! ! |
176 |
|
177 |
184 |
178 |
185 |
179 !ByteArray methodsFor:'Compatibility-Squeak'! |
186 !ByteArray methodsFor:'Compatibility-Squeak'! |
180 |
187 |
181 bitXor:aByteArray |
188 bitXor:aByteArray |
2903 " |
2910 " |
2904 #[1 2 3 1 2 3 1 2 3 1 2 3 4 5 6 4 5 6] usedValues |
2911 #[1 2 3 1 2 3 1 2 3 1 2 3 4 5 6 4 5 6] usedValues |
2905 " |
2912 " |
2906 ! ! |
2913 ! ! |
2907 |
2914 |
2908 |
|
2909 !ByteArray methodsFor:'searching'! |
2915 !ByteArray methodsFor:'searching'! |
2910 |
2916 |
2911 indexOf:aByte startingAt:start |
2917 indexOf:aByte startingAt:start |
2912 "return the index of the first occurrence of the argument, aByte |
2918 "return the index of the first occurrence of the argument, aByte |
2913 in the receiver starting at start, anInteger; return 0 if not found. |
2919 in the receiver starting at start, anInteger; return 0 if not found. |
2959 " |
2965 " |
2960 #[1 2 3 4 5 6 7 8 9 0 1 2 3 4 5] indexOf:0 |
2966 #[1 2 3 4 5 6 7 8 9 0 1 2 3 4 5] indexOf:0 |
2961 " |
2967 " |
2962 ! ! |
2968 ! ! |
2963 |
2969 |
2964 |
|
2965 !ByteArray methodsFor:'testing'! |
2970 !ByteArray methodsFor:'testing'! |
2966 |
2971 |
2967 isByteArray |
2972 isByteArray |
2968 "return true, if the receiver is some kind of bytearray; |
2973 "return true, if the receiver is some kind of bytearray; |
2969 true is returned here - the method is redefined from Object." |
2974 true is returned here - the method is redefined from Object." |
2987 ! ! |
2992 ! ! |
2988 |
2993 |
2989 !ByteArray class methodsFor:'documentation'! |
2994 !ByteArray class methodsFor:'documentation'! |
2990 |
2995 |
2991 version |
2996 version |
2992 ^ '$Header: /cvs/stx/stx/libbasic/ByteArray.st,v 1.205 2011-09-15 12:20:36 cg Exp $' |
2997 ^ '$Header: /cvs/stx/stx/libbasic/ByteArray.st,v 1.206 2011-09-15 13:11:51 cg Exp $' |
2993 ! |
2998 ! |
2994 |
2999 |
2995 version_CVS |
3000 version_CVS |
2996 ^ '$Header: /cvs/stx/stx/libbasic/ByteArray.st,v 1.205 2011-09-15 12:20:36 cg Exp $' |
3001 ^ '$Header: /cvs/stx/stx/libbasic/ByteArray.st,v 1.206 2011-09-15 13:11:51 cg Exp $' |
2997 ! ! |
3002 ! ! |