rawWrite of a struct suggestions
Charles Hixson via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sat Mar 26 11:40:11 PDT 2016
OK, after removing a few bugs, preliminary checks say that this works
perfectly.
Thanks again, as I never would have even considered that approach.
On 03/25/2016 12:24 PM, Charles Hixson via Digitalmars-d-learn wrote:
>
> On 03/25/2016 11:32 AM, Adam D. Ruppe via Digitalmars-d-learn wrote:
>> On Friday, 25 March 2016 at 18:25:28 UTC, Charles Hixson wrote:
>>> But when I try to cast a Chnk to a ubyte[], I get an error, and
>>
>> rawWrite takes a generic array of anything... you should be able to
>> rawWrite((&your_object)[0 .. 1])
>>
> Thanks, that compiled. It's running a test now...and I'm leaving it
> for a few hours.
>
>
More information about the Digitalmars-d-learn
mailing list