| | |
| | | |
| | | /** @typedef {import("../serialization/BinaryMiddleware").MEASURE_END_OPERATION_TYPE} MEASURE_END_OPERATION */ |
| | | /** @typedef {import("../serialization/BinaryMiddleware").MEASURE_START_OPERATION_TYPE} MEASURE_START_OPERATION */ |
| | | /** @typedef {typeof import("../util/Hash")} Hash */ |
| | | /** @typedef {import("../util/Hash").HashFunction} HashFunction */ |
| | | /** @typedef {import("../util/fs").IntermediateFileSystem} IntermediateFileSystem */ |
| | | |
| | | /** |
| | | * Defines the serializer type used by this module. |
| | | * @template D, S, C |
| | | * @typedef {import("../serialization/Serializer")<D, S, C>} Serializer |
| | | */ |
| | |
| | | ); |
| | | }, |
| | | /** |
| | | * Creates a file serializer. |
| | | * @template D, S, C |
| | | * @param {IntermediateFileSystem} fs filesystem |
| | | * @param {string | Hash} hashFunction hash function to use |
| | | * @param {HashFunction} hashFunction hash function to use |
| | | * @returns {Serializer<D, S, C>} file serializer |
| | | */ |
| | | createFileSerializer: (fs, hashFunction) => { |