filer.inc 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. {
  2. $Id$
  3. This file is part of the Free Component Library (FCL)
  4. Copyright (c) 1998 by the Free Pascal development team
  5. See the file COPYING.FPC, included in this distribution,
  6. for details about the copyright.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  10. **********************************************************************}
  11. { *********************************************************************
  12. * TFiler *
  13. *********************************************************************}
  14. Constructor TFiler.Create(Stream: TStream; BufSize: Integer);
  15. begin
  16. FStream:=Stream;
  17. GetMem(FBuffer,BufSize);
  18. FBufSize:=BufSize;
  19. end;
  20. Destructor TFiler.Destroy;
  21. begin
  22. If Assigned(FBuffer) then
  23. FreeMem (FBuffer,FBufSize);
  24. end;
  25. {
  26. $Log$
  27. Revision 1.2 1998-08-24 12:38:23 michael
  28. small fixes
  29. Revision 1.1 1998/05/04 14:30:11 michael
  30. * Split file according to Class; implemented dummys for all methods, so unit compiles.
  31. }