forked from boostorg/endian
@ -44,7 +44,7 @@ int main()
|
|||||||
|
|
||||||
for (auto &out_rec : recs) // write each record
|
for (auto &out_rec : recs) // write each record
|
||||||
{
|
{
|
||||||
out_rec.balance = boost::endian::native_to_big(rec.balance); // reverse if needed
|
out_rec.balance = boost::endian::native_to_big(out_rec.balance); // reverse if needed
|
||||||
out.write((const char*)&out_rec, sizeof(out_rec));
|
out.write((const char*)&out_rec, sizeof(out_rec));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user