fn flags_to_length(array: &[u8]) -> u8 {
    // 1 bit assume valid
    // 1 bit extended (must be 0 in version 2)
    // 2 bit stage (during merge)
    // 12 bit name length, if the length is less than 0xFF; otherwise 0xFF
    // Mask off the upper half of the the first byte so we can correctly cast it
    array[1]
}
/// Takes flag bytes and returns the length of the file name
Takes flag bytes and returns the length of the file name
Takes flag bytes and returns the length of the file name
fn flags_to_length(array: &[u8]) -> u8 {
    // 1 bit assume valid
    // 1 bit extended (must be 0 in version 2)
    // 2 bit stage (during merge)
    // 12 bit name length, if the length is less than 0xFF; otherwise 0xFF
    // Mask off the upper half of the the first byte so we can correctly cast it
    array[1]
}
fn flags_to_length ( array : & [ u8 ] ) -> u8 { // 1 bit assume valid // 1 bit extended (must be 0 in version 2) // 2 bit stage (during merge) // 12 bit name length, if the length is less than 0xFF; otherwise 0xFF // Mask off the upper half of the the first byte so we can correctly cast it array [ 1 ] }
Takes flag bytes and returns the length of the file name
Takes flag bytes and returns the length of the file name
array
&[u8]
array
&[u8]