aboutsummaryrefslogtreecommitdiffstats
path: root/go/bls/mcl.go
diff options
context:
space:
mode:
authorMITSUNARI Shigeo <herumi@nifty.com>2017-06-14 04:51:16 +0800
committerMITSUNARI Shigeo <herumi@nifty.com>2017-06-14 04:51:16 +0800
commit4bd6d96b71964c06fa710e591ee96e8c0282c1a9 (patch)
treedd0396edb9fecbf0c93530bde962f67c71797dbf /go/bls/mcl.go
parent32eb1b3aa4b924985db2de7265be1fa64f9df35d (diff)
downloaddexon-bls-4bd6d96b71964c06fa710e591ee96e8c0282c1a9.tar
dexon-bls-4bd6d96b71964c06fa710e591ee96e8c0282c1a9.tar.gz
dexon-bls-4bd6d96b71964c06fa710e591ee96e8c0282c1a9.tar.bz2
dexon-bls-4bd6d96b71964c06fa710e591ee96e8c0282c1a9.tar.lz
dexon-bls-4bd6d96b71964c06fa710e591ee96e8c0282c1a9.tar.xz
dexon-bls-4bd6d96b71964c06fa710e591ee96e8c0282c1a9.tar.zst
dexon-bls-4bd6d96b71964c06fa710e591ee96e8c0282c1a9.zip
add GT.SetInt64
Diffstat (limited to 'go/bls/mcl.go')
-rw-r--r--go/bls/mcl.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/go/bls/mcl.go b/go/bls/mcl.go
index b8130e2..afb57b8 100644
--- a/go/bls/mcl.go
+++ b/go/bls/mcl.go
@@ -420,6 +420,12 @@ func (x *GT) Clear() {
C.mclBnGT_clear(x.getPointer())
}
+// SetInt64 --
+func (x *GT) SetInt64(v int64) {
+ // #nosec
+ C.mclBnGT_setInt(x.getPointer(), C.int64_t(v))
+}
+
// SetString --
func (x *GT) SetString(s string, base int) error {
buf := []byte(s)