pub fn detach_buffer(ab: &Value)
Detach ab: drop its bytes and mark it, so every later read reports zero length and every method over it throws.
ab