Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!pasteur!ucbvax!hoptoad!tim From: tim@hoptoad.uucp (Tim Maroney) Newsgroups: comp.sys.mac.programmer Subject: Re: Munging the Munger Message-ID: <8398@hoptoad.uucp> Date: 27 Aug 89 01:38:07 GMT References: <4543dcb2.a590@mag.engin.umich.edu> Reply-To: tim@hoptoad.UUCP (Tim Maroney) Organization: Eclectic Software, San Francisco Lines: 18 In article <4543dcb2.a590@mag.engin.umich.edu> mystone@sol.engin.umich.edu (Dean Yu) writes: > Out of curiosity, does anyone know if _Munger respects the size of the >handle you pass it if you call _Munger to perform a deletion? Say you have >a handle, and you want to delete a chunk of bytes in the middle of the >handle. Using _Munger to delete those bytes would move everything after >those bytes up, but what happens at the physical end of the handle? What >does it put there? According to the last note in the Munger description on page I-470 of Inside Mac, it uses GetHandleSize and SetHandleSize to make sure that the output handle is the correct length. So the answer is that your handle is truncated to the appropriate length. -- Tim Maroney, Mac Software Consultant, sun!hoptoad!tim, tim@toad.com "The government of the United States is not, in any sense, founded on the Christian religion." -- George Washington