type conversion
-
Two type definitions are used in borZoi can anyone explain it to me. 1.typedef unsigned char OCTET; This represents an unsigned 8 bit type. It is called octet rather than byte in order to be consistent with the various standards. 2.typedef std::vector OCTETSTR; This is a vector of octets and represents an octet string as described in various standards.
-
Two type definitions are used in borZoi can anyone explain it to me. 1.typedef unsigned char OCTET; This represents an unsigned 8 bit type. It is called octet rather than byte in order to be consistent with the various standards. 2.typedef std::vector OCTETSTR; This is a vector of octets and represents an octet string as described in various standards.
What's the question? :~ "God doesn't play dice" - Albert Einstein "God not only plays dice, He sometimes throws the dices where they cannot be seen" - Niels Bohr
-
Two type definitions are used in borZoi can anyone explain it to me. 1.typedef unsigned char OCTET; This represents an unsigned 8 bit type. It is called octet rather than byte in order to be consistent with the various standards. 2.typedef std::vector OCTETSTR; This is a vector of octets and represents an octet string as described in various standards.
using typedef allow you to define synonyms. you use it just as you would define a variable of that type, but the name of the variable is the synonym name...
// OCTET is a synonym for unsigned char
typedef unsigned char OCTET;// OCTETSTR is a synonym for vector<OCTET>
// OCTETSTR is also a synonym for vector<unsigned char>
typedef vector<OCTET> OCTETSTR;
TOXCCT >>> GEII power
[toxcct][VisualCalc] -
Two type definitions are used in borZoi can anyone explain it to me. 1.typedef unsigned char OCTET; This represents an unsigned 8 bit type. It is called octet rather than byte in order to be consistent with the various standards. 2.typedef std::vector OCTETSTR; This is a vector of octets and represents an octet string as described in various standards.
by definition an octet is 8 "something". octet is the (better) french translation of a byte; maybe the original programmers were french. as for the other one, maybe we're missing < >
Maximilien Lincourt Your Head A Splode - Strong Bad