I am wondering what is the algorithm underlying the method unpack()in PHP? Maybe there is an equivalent in Java that I could use?
unpack()
What would be the best way to implement the PHP unpack()method in Java?
The closest functionality is the DataInputStream / DataOutputStream data pair.
I find the closest in java to Object Serialization.
See java.io.ObjectOutputStreamandjava.io.ObjectInputStream
java.io.ObjectOutputStream
java.io.ObjectInputStream
as always, there is a library method for wrapping this material in several pleasant, convenient ways.
in commons-lang :
php java-.
Source: https://habr.com/ru/post/1761896/More articles:Problem with AVAudioplayer or delegation received early - memory-managementhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1761892/how-to-add-items-to-wxscrolledpanel&usg=ALkJrhjjRA3Huqn1KnhRoxq26l5V0UFvRwhelp find the complexity of this algorithm - algorithmHow to show thumbnails of simple products in custom products with Magento - templatesUpload the file to the array and check it with in_array - filePortable vb6 compiler - portabilityCompare the result with hexdigest () with a string - pythonIs there a good reason why extension method classes cannot be nested? - .netОшибка при создании arm-elf-gcc - gccHTML5 and correctness - html5All Articles