java get byte from object that is not serializibe -


this question has answer here:

is there way bytes of object doesn't implement serializeble? in cpp know can copy size of object bytes address of object in memory, there way in java?

edit: don't see how duplication of converting object byte array in java clarify meant convert specific non serilizable object

no, isn't possible raw bytes of object. java doesn't have such view of world, objects have underlying byte representation.

note serialization doesn't give access byte representation of object either. serialization way of encoding information in object byte array. doesn't give raw bytes. if somehow searched through memory serialized bytes wouldn't find them.


Comments

Popular posts from this blog

ios - RestKit 0.20 — CoreData: error: Failed to call designated initializer on NSManagedObject class (again) -

java - Digest auth with Spring Security using javaconfig -

laravel - PDOException in Connector.php line 55: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) -