Function On-Env-Cleanup

Part of:

package org.rl-community.rl-glue-codec
( on-env-cleanup )
Handles the buffer operations for env-cleanup.