Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
G
gostnops
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wei.xuan
gostnops
Commits
831c8c5c
Commit
831c8c5c
authored
Nov 30, 2019
by
zhanghuiren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
revert stub
parent
977f1e1d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
24 deletions
+11
-24
integer.go
math/big/integer.go
+11
-24
No files found.
math/big/integer.go
View file @
831c8c5c
...
...
@@ -26,6 +26,17 @@ import (
// Integer represents a integer value.
type
Integer
struct
{
big
.
Int
// used in hessian encoding/decoding
// You Should not use it in go
Signum
int32
Mag
[]
int
// Deprecated: compatible with java8 serialize
FirstNonzeroIntNum
int
LowestSetBit
int
BitLength
int
BitCount
int
}
func
(
Integer
)
JavaClassName
()
string
{
...
...
@@ -79,27 +90,3 @@ func (i *Integer) GetSignAndMag() (signum int32, mag []int) {
return
}
func
(
i
*
Integer
)
GetIntegerStub
()
(
stub
*
IntegerStub
)
{
stub
=
new
(
IntegerStub
)
stub
.
Signum
,
stub
.
Mag
=
i
.
GetSignAndMag
()
return
}
func
(
i
*
Integer
)
SetIntegerStub
(
stub
*
IntegerStub
)
{
i
.
FromSignAndMag
(
stub
.
Signum
,
stub
.
Mag
)
return
}
// IntegerStub is used for hessian encoding and decoding
// You Should not use it in go
type
IntegerStub
struct
{
Signum
int32
Mag
[]
int
// Deprecated: compatible with java8 serialize
FirstNonzeroIntNum
int
LowestSetBit
int
BitLength
int
BitCount
int
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment