def METHOD_NAME(cls, buffer: Buffer) -> 'WadEntry':
    (offset,
     size,
     uncompressed_size,
     entry_type,
     compression,
     name) = buffer.read_fmt("IIIBBxx16s")
    name = name[:name.index(b'\x00')].decode().upper()
    return cls(offset, size, uncompressed_size, WadEntryType(entry_type), compression, name)