decode

 

 

Overview

The decode function decodes and uncompresses the encoded Byte Vector {input}. The specified key {key} will be used to decode and after decoding, the decode function calls the uncompress function. The end result will be the original Byte Vector. The {key} argument must be the same key that was used by the encode function to encode the original Byte Vector.

Usage

The decode function is used to restore an encoded object back to its original state.

 

Syntax


Expression:

(decode input key)


Arguments Name Type Description
Argument:inputByteVector The Byte Vector to be decoded and then uncompressed.
Argument:keyNumber The Number key to use for decoding (must be the same key used for encoding).

Returns:

The original Object before encoding



 

Examples

Here are a number of links to Lambda coding examples which contain this instruction in various use cases.

 

Argument Types

Here are the links to the data types of the function arguments.

ByteVector Number

Here are also a number of links to functions having arguments with any of these data types.

++ += + /=
/ * -- -=
- abs acos add1
addMethod addi appendWriteln argument
arithmetic asin atan avg
binaryInsert bitwiseNot boolean character
compareEQ compareGE compareGT compareLE
compareLT compareNE compare compress
cons cos cosh count
date day days360 decode
deg dimension display divi
encode exp expt fact
fdisplay fileClose fileCopy fileDisplay
fileErase fileOpen fileRead fileWriteAll
fileWrite filewriteln floor fraction
getTickCount hour iadd icompareEQ
icompareGE icompareGT icompareLE icompareLT
icompareNE idiv imod imul
inside integer isAtom isBitVector
isBoolean isByteVector isCharAlphabetic isCharAlphanumeric
isCharLowercase isCharName isCharNumeric isCharUppercase
isCharWhitespace isChar isCharacter isComplex
isDate isDictionary isDirectory isEqual
isError isEven isExact isFloatVector
isIdentical isInexact isInside isIntegerVector
isInteger isLambda isMatrix isMember
isMoney isNegative isNull isNumberMatrix
isNumberVector isNumber isObjectVector isObject
isOdd isPair isPcodeVector isPositive
isString isStructure isSymbol isText
isType isVector isZero isub
julian kurtosis length list
loadObject log10 log2 log
logbase macroReplace makeQuotedList max
median member min minute
mod modi money month
muli nadd ncompareEQ ncompareGE
ncompareGT ncompareLE ncompareLT ncompareNE
ndiv new nmod nmul
now nsub number objectToMatrix
objectToNumMatrix objectToNumVector offset pair
parent parse pi pointer
product qt rad random
randomize range ref remove
round run saveObject saveRepository
second setCar setCdr setLastCdr
setq sigmoid sign sin
sinh sizeof skew sleep
sqrt srandom stdev stdevp
string sub1 subi submit
sum sumsqr system tan
tanh time type uncompress
uniqueInsert var varp vectorBinaryInnerProduct
vectorBipolarInnerProduct vectorCosineInnerProduct vectorCubeInnerProduct vectorExpInnerProduct
vectorFill vectorInnerProduct vectorLogInnerProduct vectorQuartInnerProduct
vectorQuintInnerProduct vectorSigmoidInnerProduct vectorSineInnerProduct vectorSquareInnerProduct
vectorTanInnerProduct vectorTanhInnerProduct writelg writeln
year

Analytic Information Server (AIS)

AIS Component Systems

  • Smartbase Engine
  • QT C++ Libraries
  • MySQL Relational Database
  • AIS Lisp Libraries
  • Rapid Analytic Demo IDE