Modifier and Type | Method and Description |
---|---|
int |
getLengthInBytesCompressed()
Returns the length in bytes needed to represent this element in a compressed way.
|
int |
getLengthInBytesX()
Returns the length in bytes needed to represent the x coordinate of this element.
|
E |
getX()
Returns the x-coordinate.
|
E |
getY()
Returns the y-coordinate.
|
int |
setFromBytesCompressed(byte[] source)
Reads this element from the buffer source.
|
int |
setFromBytesCompressed(byte[] source,
int offset)
Reads the x-coordinate from the buffer source staring from the passed offset.
|
int |
setFromBytesX(byte[] source)
Reads the x-coordinate from the buffer source.
|
int |
setFromBytesX(byte[] source,
int offset)
Reads the x-coordinate from the buffer source staring from the passed offset.
|
byte[] |
toBytesCompressed()
Converts this element to bytes.
|
byte[] |
toBytesX()
Converts the x-coordinate to bytes.
|
add, div, duplicate, getElementPowPreProcessing, getField, getImmutable, getLengthInBytes, halve, invert, isEqual, isImmutable, isOne, isSqr, isZero, mul, mul, mul, mulZn, negate, pow, powZn, set, set, set, setFromBytes, setFromBytes, setFromHash, setToOne, setToRandom, setToZero, sign, sqrt, square, sub, toBigInteger, toBytes, toCanonicalRepresentation, twice
E getX()
E getY()
int getLengthInBytesCompressed()
byte[] toBytesCompressed()
int setFromBytesCompressed(byte[] source)
source
- the source of bytes.int setFromBytesCompressed(byte[] source, int offset)
source
- the source of bytes.offset
- the starting offset.int getLengthInBytesX()
byte[] toBytesX()
int setFromBytesX(byte[] source)
source
- the source of bytes.int setFromBytesX(byte[] source, int offset)
source
- the source of bytes.offset
- the starting offset.Copyright © 2013. All rights reserved.