#REFACTORING by stefan
class: UninterpretedBytes
moved: #asString
to subclasses
--- a/UninterpretedBytes.st Tue Jul 12 18:39:13 2016 +0200
+++ b/UninterpretedBytes.st Tue Jul 12 18:39:41 2016 +0200
@@ -4041,25 +4041,6 @@
"
!
-asString
- "speed up string conversions"
-
- |size cls|
-
- cls := self class.
-
- (cls == ByteArray or:[cls == ImmutableByteArray or:[cls == ExternalBytes]]) ifTrue:[
- size := self size.
- ^ (String uninitializedNew:size) replaceBytesFrom:1 to:size with:self startingAt:1.
- ].
- ^ super asString.
-
- "
- #[16r41 16r42 16r43] asString
- #[16r41 16r42 16r43] asExternalBytes asString
- "
-!
-
asUUID
^ UUID fromBytes:self
! !