Updated function definitions to match new buffer size type