use sircc memory functions for libbuffer