Added platform endianess detection and fixed String byte conversion.
This commit is contained in:
@ -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()));
|
||||
|
||||
Reference in New Issue
Block a user