From 1edac6f1261ba6fa040e522aa59a0be2eb730a2d Mon Sep 17 00:00:00 2001 From: mccallum Date: Tue, 12 Mar 1996 19:40:30 +0000 Subject: [PATCH] ([MemoryStream -initWithCapacity:prefix:]): New method. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1118 72102866-910b-0410-8b05-ffd578937521 --- Source/MemoryStream.m | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Source/MemoryStream.m b/Source/MemoryStream.m index 2841c4bb9..9a1b3c98a 100644 --- a/Source/MemoryStream.m +++ b/Source/MemoryStream.m @@ -95,6 +95,14 @@ static BOOL debug_memory_stream = NO; prefix:p position:i]; } +- initWithCapacity: (unsigned)capacity + prefix: (unsigned)p +{ + return [self initWithSize: capacity + prefix: p + position: 0]; +} + - initWithCapacity: (unsigned)capacity { return [self initWithSize:capacity prefix:0 position:0];