higher-level read/write functions in pattern storage types