comment
authorClaus Gittinger <cg@exept.de>
Mon, 25 May 1998 19:49:17 +0200
changeset 3486 bbd47c3011e5
parent 3485 3c1fb0af87fc
child 3487 565a1a49fbf9
comment
ExtBytes.st
ExternalBytes.st
--- a/ExtBytes.st	Mon May 25 17:31:14 1998 +0200
+++ b/ExtBytes.st	Mon May 25 19:49:17 1998 +0200
@@ -420,7 +420,8 @@
 
 new:numberOfBytes
     "allocate some memory usable for data;
-     return a corresponding ExternalBytes object or nil (if malloc fails).
+     the memory is not controlled by the garbage collector.
+     Return a corresponding ExternalBytes object or nil (if malloc fails).
 
      Use this, if you have to pass a block of bytes to some 
      external destination (such as a C function) which does not copy the
@@ -450,8 +451,9 @@
 !
 
 unprotectedNew:numberOfBytes
-    "allocate some memory usable for data;
-     return a corresponding ExternalBytes object or nil (if malloc fails).
+    "allocate some memory usable for data; 
+     the memory is under the control of the garbage collector.
+     Return a corresponding ExternalBytes object or nil (if malloc fails).
 
      DANGER ALERT: the memory block as allocated will be automatically freed
                    as soon as the reference to the returned externalBytes object
@@ -532,6 +534,15 @@
     "
 !
 
+mallocStatistics
+%{
+    __stx_mallocStatistics();
+%}
+    "
+     self mallocStatistics
+    "
+!
+
 mallocTrace:aBoolean
     TraceMalloc := aBoolean
 
@@ -548,15 +559,6 @@
     "
      self numberOfAllocatedChunks
     "
-!
-
-mallocStatistics
-%{
-    __stx_mallocStatistics();
-%}
-    "
-     self mallocStatistics
-    "
 ! !
 
 !ExternalBytes class methodsFor:'private instance creation/release'!
@@ -937,6 +939,6 @@
 !ExternalBytes class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libbasic/Attic/ExtBytes.st,v 1.22 1998-03-05 21:40:07 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libbasic/Attic/ExtBytes.st,v 1.23 1998-05-25 17:49:17 cg Exp $'
 ! !
 ExternalBytes initialize!
--- a/ExternalBytes.st	Mon May 25 17:31:14 1998 +0200
+++ b/ExternalBytes.st	Mon May 25 19:49:17 1998 +0200
@@ -420,7 +420,8 @@
 
 new:numberOfBytes
     "allocate some memory usable for data;
-     return a corresponding ExternalBytes object or nil (if malloc fails).
+     the memory is not controlled by the garbage collector.
+     Return a corresponding ExternalBytes object or nil (if malloc fails).
 
      Use this, if you have to pass a block of bytes to some 
      external destination (such as a C function) which does not copy the
@@ -450,8 +451,9 @@
 !
 
 unprotectedNew:numberOfBytes
-    "allocate some memory usable for data;
-     return a corresponding ExternalBytes object or nil (if malloc fails).
+    "allocate some memory usable for data; 
+     the memory is under the control of the garbage collector.
+     Return a corresponding ExternalBytes object or nil (if malloc fails).
 
      DANGER ALERT: the memory block as allocated will be automatically freed
                    as soon as the reference to the returned externalBytes object
@@ -532,6 +534,15 @@
     "
 !
 
+mallocStatistics
+%{
+    __stx_mallocStatistics();
+%}
+    "
+     self mallocStatistics
+    "
+!
+
 mallocTrace:aBoolean
     TraceMalloc := aBoolean
 
@@ -548,15 +559,6 @@
     "
      self numberOfAllocatedChunks
     "
-!
-
-mallocStatistics
-%{
-    __stx_mallocStatistics();
-%}
-    "
-     self mallocStatistics
-    "
 ! !
 
 !ExternalBytes class methodsFor:'private instance creation/release'!
@@ -937,6 +939,6 @@
 !ExternalBytes class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libbasic/ExternalBytes.st,v 1.22 1998-03-05 21:40:07 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libbasic/ExternalBytes.st,v 1.23 1998-05-25 17:49:17 cg Exp $'
 ! !
 ExternalBytes initialize!