github.com/cyrilou242/gomobile-java@v0.0.0-20220215185836-09daef25a210/bind/seq/seq.go (about)

     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  
     5  // Package seq implements the machine-dependent seq serialization format.
     6  //
     7  // Implementations of Transact and FinalizeRef are provided by a
     8  // specific foreign language binding package, e.g. go.mobile/bind/java.
     9  //
    10  // Designed only for use by the code generated by gobind. Don't try to
    11  // use this directly.
    12  package seq
    13  
    14  // FinalizeRef is the finalizer used on foreign objects.
    15  var FinalizeRef func(ref *Ref)
    16  
    17  // IncRef increments the foreign reference count for ref while it is in transit.
    18  // The count is decremented after the ref is received and translated on the foreign side.
    19  var IncForeignRef func(refnum int32)