Show More
@@ -300,12 +300,12 b' mod tests {' | |||||
300 | // Remaining offset bytes. |
|
300 | // Remaining offset bytes. | |
301 | bytes.extend(&[0u8; 2]); |
|
301 | bytes.extend(&[0u8; 2]); | |
302 | } else { |
|
302 | } else { | |
303 |
// Offset |
|
303 | // Offset stored on 48 bits (6 bytes) | |
304 | bytes.extend(&self.offset.to_be_bytes()[2..]); |
|
304 | bytes.extend(&(self.offset as u64).to_be_bytes()[2..]); | |
305 | } |
|
305 | } | |
306 | bytes.extend(&[0u8; 2]); // Revision flags. |
|
306 | bytes.extend(&[0u8; 2]); // Revision flags. | |
307 |
bytes.extend(&self.compressed_len.to_be_bytes() |
|
307 | bytes.extend(&(self.compressed_len as u32).to_be_bytes()); | |
308 |
bytes.extend(&self.uncompressed_len.to_be_bytes() |
|
308 | bytes.extend(&(self.uncompressed_len as u32).to_be_bytes()); | |
309 | bytes.extend(&self.base_revision.to_be_bytes()); |
|
309 | bytes.extend(&self.base_revision.to_be_bytes()); | |
310 | bytes |
|
310 | bytes | |
311 | } |
|
311 | } |
General Comments 0
You need to be logged in to leave comments.
Login now