Expand description
Wave file utility: conversion between WaveFile (storage) and FileInfo (RPC). Port of Go’s pkg/util/rpc_fileutil/rpc_fileutil.go.
Provides the bridge between the internal file storage representation and the wire format used by the RPC protocol.
Structs§
- File
Info - File information as exposed over the RPC wire.
Matches Go’s
wshrpc.FileInfo.
Constants§
- FILE_
PATH_ PATTERN - URL pattern for wave file paths.
Functions§
- is_zero 🔒
- parse_
wave_ file_ path - Parse a wave file path into (zone_id, file_name).
Expects format:
wavefile://zone-id/filename - wave_
file_ list_ to_ file_ info_ list - Convert a list of WaveFiles to FileInfo list.
- wave_
file_ to_ file_ info - Convert a WaveFile to FileInfo for RPC transmission.