G
Guest
I want to cast a class into a byte array. I've seen some examples of this
floating around, but they all have simple data members. What happens if I
cast something that has a ArrayList or an Array?? Does it loop through the
array and cast them all and I end up with a big array (This is what I hope
will happen)? Or does it simple cast the pointer address and I end up with a
small array??
Related question: How do I make sure everything in the class (including
member variables that are subclasses) are included in this cast?? And if I
try to cast back from a byte array, will I get back everything as it was??
I haven't started in on this project yet, so I can't say as I've tried any
of this..
GE
floating around, but they all have simple data members. What happens if I
cast something that has a ArrayList or an Array?? Does it loop through the
array and cast them all and I end up with a big array (This is what I hope
will happen)? Or does it simple cast the pointer address and I end up with a
small array??
Related question: How do I make sure everything in the class (including
member variables that are subclasses) are included in this cast?? And if I
try to cast back from a byte array, will I get back everything as it was??
I haven't started in on this project yet, so I can't say as I've tried any
of this..
GE