add all
This commit is contained in:
1 parent
4897e8d307
commit
4aca3324c9
10 files changed
+401
-17
No files matched your search
@@ -1,8 +1,10 @@
|
||||
package helper
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"crypto/rsa"
|
||||
"encoding/binary"
|
||||
"io"
|
||||
"math/big"
|
||||
"math/rand"
|
||||
)
|
||||
@@ -64,6 +66,14 @@ func (this *MockIoWriter) Bytes() []byte {
|
||||
return this.state
|
||||
}
|
||||
|
||||
func (this *MockIoWriter) Reader() io.Reader {
|
||||
return bytes.NewReader(this.state)
|
||||
}
|
||||
|
||||
func (this *MockIoWriter) ReaderAt() io.ReaderAt {
|
||||
return bytes.NewReader(this.state)
|
||||
}
|
||||
|
||||
func Range(length int) []byte {
|
||||
ret := make([]byte, length)
|
||||
for i, _ := range ret {
|
||||
|
||||
Reference in new issue
Block a user