// Copyright 2025 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

package scan

import 

// FilterNil packs non-nil (non-zero) values in bufp together
// at the beginning of bufp, returning the length of the
// packed buffer. It treats bufp as an array of size n.
func ( *uintptr,  int32) int32 {
	 := unsafe.Slice(, int())
	 := 0
	 := len() - 1
	for  <  {
		for  <  && [] == 0 {
			--
		}
		for  <  && [] != 0 {
			++
		}
		if  >=  {
			break
		}
		[] = []
		--
	}
	if  >= 0 && [] == 0 {
		--
	}
	return int32() + 1
}