[client.keyset] renamed 'Write(io.Writer)' to 'Store(io.Writer)' and 'Read(io.Reader)' to 'Fetch(io.Reader)'
This commit is contained in:
parent
b5c8477582
commit
938df1b63c
|
@ -37,7 +37,7 @@ type Set struct {
|
|||
func Create(ctx *context.Context, max uint16) (*Set, error) {
|
||||
|
||||
/* (1) Fail if min+thre >= max */
|
||||
if ctx.MinDepth()+ctx.DepthThreshold() >= max {
|
||||
if max < ctx.MinDepth()+ctx.DepthThreshold() {
|
||||
return nil, errors.New("Maximum depth must be greater than Min+threshold (from given Context)")
|
||||
}
|
||||
|
||||
|
@ -143,7 +143,7 @@ func (s *Set) Decrement() uint16 {
|
|||
* network endianness -> big-endian
|
||||
*
|
||||
---------------------------------------------------------*/
|
||||
func (s *Set) Write(writer io.Writer) error {
|
||||
func (s *Set) Store(writer io.Writer) error {
|
||||
|
||||
var err error;
|
||||
|
||||
|
@ -177,7 +177,7 @@ func (s *Set) Write(writer io.Writer) error {
|
|||
* | 16 bits | hsize bits | 16 bits |
|
||||
*
|
||||
---------------------------------------------------------*/
|
||||
func (s *Set) Read(reader io.Reader) error {
|
||||
func (s *Set) Fetch(reader io.Reader) error {
|
||||
|
||||
var err error
|
||||
var secretLength uint16
|
||||
|
|
Loading…
Reference in New Issue