Module rpc_fileutil

Module rpc_fileutil 

Source
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§

FileInfo
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.