v2 / vlib / v / ast / embed_file.v
10 lines · 8 sloc · 334 bytes · 763f94388b1ceff59c3e68ebda2c9f57197f32a4
Raw
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.
4module ast
5
6import hash.fnv1a
7
8pub fn (e EmbeddedFile) hash() u64 {
9 return fnv1a.sum64_string('${e.apath}, ${e.compression_type}, ${e.is_compressed}, ${e.len}')
10}
11