12-08-2004 12:18 PM
12-08-2004 12:25 PM
Well, then you are guaranteed to make a copy of the data. That's exactly what I'm trying to avoid.
Blog for (mostly LabVIEW) programmers: Tips And Tricks
12-08-2004 12:44 PM
I used LV 7.1 on the Mac to open your code. I used the SHOW BUFFER ALLOCATIONS tool and I see a buffer allocation at each WRITE FILE function, whether or not you use the weird typecast. It's little black squares that flash on the function icons, not a red circle.
In other words, the typecast does nothing at all to affect the code. (That's what I would expect.)
Blog for (mostly LabVIEW) programmers: Tips And Tricks
12-08-2004 12:47 PM
12-08-2004 12:50 PM
12-08-2004 12:51 PM
12-08-2004 01:00 PM
Blog for (mostly LabVIEW) programmers: Tips And Tricks
12-08-2004 01:00 PM
12-08-2004 01:09 PM
12-08-2004 01:17 PM
Alright, we're back at square one. The weird typecast does nothing (which is a relief in itself).
The question remains, why does a TYPEDEF incur a buffer-creation / type-coercion penalty, where an equivalent non-TYPEDEF structure does not?
Blog for (mostly LabVIEW) programmers: Tips And Tricks