Added platform endianess detection and fixed String byte conversion.

This commit is contained in:
2016-12-18 03:20:31 -05:00
parent 022f6ae87a
commit 3b01eed3e0
5 changed files with 231 additions and 46 deletions

View File

@ -41,7 +41,7 @@ pub fn use_transmutable()
// Initialize the variables.
num = 6.291985f32;
buffer = Vec::new();
endianess = Endianess::PLATFORM;
endianess = Endianess::Platform;
println!("Converting the value {} into and out of an array of bytes.", num);
println!("Buffer starts as: {}", stringify_array(buffer.as_slice()));