UnprotectedExternalBytes.st
changeset 6489 20ff7b3f3f26
child 15959 ad03342d5dff
child 17711 39faaaf888b4
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/UnprotectedExternalBytes.st	Tue Apr 09 17:23:15 2002 +0200
@@ -0,0 +1,47 @@
+"{ Package: 'stx:libbasic' }"
+
+ExternalBytes subclass:#UnprotectedExternalBytes
+	instanceVariableNames:''
+	classVariableNames:''
+	poolDictionaries:''
+	category:'System-Support'
+!
+
+!UnprotectedExternalBytes class methodsFor:'documentation'!
+
+documentation
+"
+    This is just a factory to generate ExternalBytes.
+    There are no instances of this class!!
+
+    The difference to ExternalBytes is, that #new: returns unprotected ExternalBytes,
+    that are not protected from garbage collecteded. ExternalBytes allocated #with new:
+    are not garbage collected.
+
+    [author:]
+        Stefan Vogel
+
+    [see also:]
+        ExternalBytes
+"
+! !
+
+!UnprotectedExternalBytes class methodsFor:'instance creation'!
+
+new
+    "return ExternalBytes"
+
+    ^ ExternalBytes new
+!
+
+new:size
+    "return unprotected ExternalBytes"
+
+    ^ ExternalBytes unprotectedNew:size
+! !
+
+!UnprotectedExternalBytes class methodsFor:'documentation'!
+
+version
+    ^ '$Header: /cvs/stx/stx/libbasic/UnprotectedExternalBytes.st,v 1.1 2002-04-09 15:23:15 stefan Exp $'
+! !