seq.go 873 B

123456789101112131415161718192021
  1. // Copyright 2014 The Go Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style
  3. // license that can be found in the LICENSE file.
  4. // Package seq implements the machine-dependent seq serialization format.
  5. //
  6. // Implementations of Transact and FinalizeRef are provided by a
  7. // specific foreign language binding package, e.g. go.mobile/bind/java.
  8. //
  9. // Designed only for use by the code generated by gobind. Don't try to
  10. // use this directly.
  11. package seq // import "golang.org/x/mobile/bind/seq"
  12. import _ "golang.org/x/mobile/internal/mobileinit"
  13. // FinalizeRef is the finalizer used on foreign objects.
  14. var FinalizeRef func(ref *Ref)
  15. // IncRef increments the foreign reference count for ref while it is in transit.
  16. // The count is decremented after the ref is received and translated on the foreign side.
  17. var IncForeignRef func(refnum int32)