We use C++ in both front-end (Windows 32-bit) and back-end (Linux 64-bit). They can pass either binary or text data to communicate. Is there any middleware/library that will convert these data from 64-bit to 32-bit? Or is the only option to change your code?
Is there any middleware/library that will convert your binary or text data from 64-bit to 32-bit?
389 Views Asked by coredumper At
1
There are 1 best solutions below
Related Questions in C++
- Hyperlink directs to hidden row
- HTML Button Link to Website from Text
- Replacing a hyperlink with an image on excel
- Retain css of links after enabling click-tracking of send-grid
- Problems with Clickable Divs in side bar
- Links with images and text - combined or separate?
- Remove Underline From HyperLinkButton XAML
- Launch a web browser or youtube using textview in android
- Can we edit hyperlink in Restrict editing mode in Word 2013?
- HTML link scroll down the page
Related Questions in 64-BIT
- Hyperlink directs to hidden row
- HTML Button Link to Website from Text
- Replacing a hyperlink with an image on excel
- Retain css of links after enabling click-tracking of send-grid
- Problems with Clickable Divs in side bar
- Links with images and text - combined or separate?
- Remove Underline From HyperLinkButton XAML
- Launch a web browser or youtube using textview in android
- Can we edit hyperlink in Restrict editing mode in Word 2013?
- HTML link scroll down the page
Related Questions in 32BIT-64BIT
- Hyperlink directs to hidden row
- HTML Button Link to Website from Text
- Replacing a hyperlink with an image on excel
- Retain css of links after enabling click-tracking of send-grid
- Problems with Clickable Divs in side bar
- Links with images and text - combined or separate?
- Remove Underline From HyperLinkButton XAML
- Launch a web browser or youtube using textview in android
- Can we edit hyperlink in Restrict editing mode in Word 2013?
- HTML link scroll down the page
Related Questions in PORTING
- Hyperlink directs to hidden row
- HTML Button Link to Website from Text
- Replacing a hyperlink with an image on excel
- Retain css of links after enabling click-tracking of send-grid
- Problems with Clickable Divs in side bar
- Links with images and text - combined or separate?
- Remove Underline From HyperLinkButton XAML
- Launch a web browser or youtube using textview in android
- Can we edit hyperlink in Restrict editing mode in Word 2013?
- HTML link scroll down the page
Related Questions in MIGRATE
- Hyperlink directs to hidden row
- HTML Button Link to Website from Text
- Replacing a hyperlink with an image on excel
- Retain css of links after enabling click-tracking of send-grid
- Problems with Clickable Divs in side bar
- Links with images and text - combined or separate?
- Remove Underline From HyperLinkButton XAML
- Launch a web browser or youtube using textview in android
- Can we edit hyperlink in Restrict editing mode in Word 2013?
- HTML link scroll down the page
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
There's no such thing like "64-bit text data". A text file just contains characters in some encoding. And currently there's no 64-bit encoding available. The longest fixed-width encoding is UTF-32 which is 32-bit long. For variable-length encoding, it's maximum 6-byte long for UTF-8 (edit: it has been officially limited to 4 bytes only because the range for Unicode was restricted to U+10FFFF) and a different number for others, but none is up to 8 bytes long. If there are differences then you need to convert the encoding, not 64-bit to 32-bit
For more information read The Absolute Minimum Every Software Developer Absolutely, Positively Must Know About Unicode and Character Sets (No Excuses!)
Binary is also just a series of bits, not necessary an array of constant width 64-bit or 32-bit numbers although in modern computer architectures the size is a multiple of bytes. You need to read the data exactly like how they were written. If you write a 64-bit value, read as a 64-bit value regardless of the 16, 32 or 64-bit program. How can you ensure that a number written in 64-bit does not overflow when cropping to 32-bit?
If you're using MSVC then the type sizes are the same in both 32 and 64-bit mode except pointers, thus no code changing is required if you stick to the standard. On most other 64-bit platforms you may need to take care if you use
long
since it's wider than in a 32-bit program.It's better to use C++11's standard types like
intN_t
incstdint
in cross-platform code. Before C++11 and C99 many libraries and compilers also define their own standard fixed-width integer types like that for compatibility, for example qint32 in Qt and__int32
in MSVC