realbasic-nug
[Top] [All Lists]

Re: BinaryStream to MemoryBlock

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: BinaryStream to MemoryBlock
From: Harrie Westphal <harriew at frontiernet dot net>
Date: Tue, 28 Feb 2006 10:53:22 -0600
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <6C8CC36D-4DF1-4753-9508-A1C5E614330C at frontiernet dot net><0C793071-8B67-44BA- 8D52-88005902DE80 at mobleybros dot com> <2884A5EC-8669-4909-A863-70807231192D at frontiernet dot net> <00dd01c63c42$b037c1b0$1f00a8c0 at daniel> <a06200702c02a1ba4c5aa at [10 dot 71 dot 2 dot 34]> <2A462747-3350-4726-B215-A414D377E252 at mobleybros dot com>

On Feb 28, 2006, at 10:20 AM, Phil M wrote:

The method that does not exist is the MemoryBlock.String() method... it should be StringValue(). Otherwise that code would work as well.

Confirmed. So now I have either method working nicely.

Dim mb As MemoryBlock = b.read(n)

  or

mb = new MemoryBlock(n)
mb.StringValue(0,n) = b.read(n)

Thanks for the help. This was all in getting a hex dump feature for the program I am working on. The program is just a little something to help me weed out the orphaned preferences files on my Mac.


=== A Mac addict in Tennessee ===

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>