We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 098e243 commit cdb16a5Copy full SHA for cdb16a5
src/async_reader.rs
@@ -158,6 +158,7 @@ impl AsyncCursor {
158
// Initialize with default endianness and then set later
159
let mut cursor = Self::new(reader, Default::default());
160
let magic_bytes = cursor.read(2).await;
161
+
162
// Should be b"II" for little endian or b"MM" for big endian
163
if magic_bytes == Bytes::from_static(b"II") {
164
cursor.endianness = Endianness::LittleEndian;
0 commit comments