| 1 | // Copyright (c) 2019-2024 Alexander Medvednikov. All rights reserved. |
| 2 | // Use of this source code is governed by an MIT license |
| 3 | // that can be found in the LICENSE file. |
| 4 | module ast |
| 5 | |
| 6 | import hash.fnv1a |
| 7 | |
| 8 | pub fn (e EmbeddedFile) hash() u64 { |
| 9 | return fnv1a.sum64_string('${e.apath}, ${e.compression_type}, ${e.is_compressed}, ${e.len}') |
| 10 | } |
| 11 |