Index
Modules:
tagforge
,
tagforge/private/stew/endians2
.
API symbols
`$`:
tagforge: proc `$`(t: TagNode): string
`==`:
tagforge: proc `==`(a, b: TagNode): bool
`[]=`:
tagforge: proc `[]=`(node: TagNode; idx: int; value: TagNode)
tagforge: proc `[]=`(node: TagNode; name: string; value: TagNode)
`[]`:
tagforge: proc `[]`(node: TagNode; idx: int): TagNode
tagforge: proc `[]`(node: TagNode; name: string): TagNode
BE:
tagforge: TagFormat.BE
Byte:
tagforge: TagNodeKind.Byte
ByteArray:
tagforge: TagNodeKind.ByteArray
Compound:
tagforge: TagNodeKind.Compound
Double:
tagforge: TagNodeKind.Double
dumpNbt:
tagforge: proc dumpNbt(s: TagNode; format = BE; network = true): string
End:
tagforge: TagNodeKind.End
Float:
tagforge: TagNodeKind.Float
fromBE:
endians2: proc fromBE[T: SomeEndianInt](x: T): T
fromBytes:
endians2: proc fromBytes(T: typedesc[SomeEndianInt]; x: openArray[byte]; endian: Endianness = system.cpuEndian): T:type
fromBytesBE:
endians2: proc fromBytesBE(T: typedesc[SomeEndianInt]; x: openArray[byte]): T:type
fromBytesLE:
endians2: proc fromBytesLE(T: typedesc[SomeEndianInt]; x: openArray[byte]): T:type
fromLE:
endians2: proc fromLE[T: SomeEndianInt](x: T): T
getByte:
tagforge: proc getByte(node: TagNode): int8
getByteArray:
tagforge: proc getByteArray(node: TagNode): seq[int8]
getDouble:
tagforge: proc getDouble(node: TagNode): float64
getFloat:
tagforge: proc getFloat(node: TagNode): float32
getInt:
tagforge: proc getInt(node: TagNode): int32
getIntArray:
tagforge: proc getIntArray(node: TagNode): seq[int32]
getLong:
tagforge: proc getLong(node: TagNode): int64
getLongArray:
tagforge: proc getLongArray(node: TagNode): seq[int64]
getShort:
tagforge: proc getShort(node: TagNode): int16
getString:
tagforge: proc getString(node: TagNode): string
Int:
tagforge: TagNodeKind.Int
IntArray:
tagforge: TagNodeKind.IntArray
LE:
tagforge: TagFormat.LE
List:
tagforge: TagNodeKind.List
Long:
tagforge: TagNodeKind.Long
LongArray:
tagforge: TagNodeKind.LongArray
newTagByte:
tagforge: proc newTagByte(x: int8): TagNode
newTagByteArray:
tagforge: proc newTagByteArray(x = newSeq()): TagNode
newTagCompound:
tagforge: proc newTagCompound(x = initTable()): TagNode
newTagDouble:
tagforge: proc newTagDouble(x: float64): TagNode
newTagFloat:
tagforge: proc newTagFloat(x: float32): TagNode
newTagInt:
tagforge: proc newTagInt(x: int32): TagNode
newTagIntArray:
tagforge: proc newTagIntArray(x = newSeq()): TagNode
newTagList:
tagforge: proc newTagList(typ: TagNodeKind; x = newSeq()): TagNode
newTagLong:
tagforge: proc newTagLong(x: int64): TagNode
newTagLongArray:
tagforge: proc newTagLongArray(x = newSeq()): TagNode
newTagShort:
tagforge: proc newTagShort(x: int16): TagNode
newTagString:
tagforge: proc newTagString(x = ""): TagNode
parseNbt:
tagforge: proc parseNbt(s: string; format = BE; network = false): TagNode
Short:
tagforge: TagNodeKind.Short
SomeEndianInt:
endians2: type SomeEndianInt
String:
tagforge: TagNodeKind.String
swapBytes:
endians2: proc swapBytes[T: SomeEndianInt](x: T): T
TagDataTooLarge:
tagforge: object TagDataTooLarge
TagFormat:
tagforge: enum TagFormat
TagNode:
tagforge: type TagNode
TagNodeKind:
tagforge: enum TagNodeKind
TagParsingError:
tagforge: object TagParsingError
TagValidationError:
tagforge: object TagValidationError
toBE:
endians2: proc toBE[T: SomeEndianInt](x: T): T
toBytes:
endians2: proc toBytes(x: SomeEndianInt; endian: Endianness = system.cpuEndian): array[ sizeof(x), byte]
toBytesBE:
endians2: proc toBytesBE(x: SomeEndianInt): array[sizeof(x), byte]
toBytesLE:
endians2: proc toBytesLE(x: SomeEndianInt): array[sizeof(x), byte]
toJson:
tagforge: proc toJson(s: TagNode): JsonNode
toLE:
endians2: proc toLE[T: SomeEndianInt](x: T): T