object ErgoTree extends Serializable
- Alphabetic
- By Inheritance
- ErgoTree
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
val
ConstantSegregationFlag: Byte
Header flag to indicate that constant segregation should be applied.
-
val
ConstantSegregationHeader: Byte
Default header with constant segregation enabled.
-
val
DefaultHeader: Byte
Default value of ErgoTree.header byte
- val EmptyConstants: IndexedSeq[Constant[SType]]
-
val
SizeFlag: Byte
Header flag to indicate that whole size of ErgoTree should be saved before tree content.
-
val
VersionFlag: Byte
Current version of ErgoTree serialization format (aka bite-code language version)
-
val
VersionMask: Byte
Header mask to extract version bits.
- def apply(header: Byte, constants: IndexedSeq[Constant[SType]], root: SigmaPropValue): ErgoTree
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
- implicit def fromProposition(prop: SigmaPropValue): ErgoTree
- implicit def fromSigmaBoolean(pk: SigmaBoolean): ErgoTree
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
getVersion(header: Byte): Byte
- Annotations
- @inline()
-
final
def
hasSize(header: Byte): Boolean
- Annotations
- @inline()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isConstantSegregation(header: Byte): Boolean
- Annotations
- @inline()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def substConstants(root: SValue, constants: IndexedSeq[Constant[SType]]): SValue
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
- def withSegregation(value: SigmaPropValue): ErgoTree
-
def
withSegregation(headerFlags: Byte, value: SigmaPropValue): ErgoTree
Build ErgoTree via serialization of the value with ConstantSegregationHeader, constants segregated from the tree and ConstantPlaceholders referring to the segregated constants.
Build ErgoTree via serialization of the value with ConstantSegregationHeader, constants segregated from the tree and ConstantPlaceholders referring to the segregated constants.
This method uses single traverse of the tree to: 1) find and segregate all constants; 2) replace constants with ConstantPlaceholders in the
tree
; 3) write thetree
to the Writer's buffer obtainingtreeBytes
; 4) deserializetree
with ConstantPlaceholders. - def withoutSegregation(root: SigmaPropValue): ErgoTree