Buffer collection utilties.