45 for ( ValueCopy = Value, BlockNum = 0; ValueCopy && (BlockNum <
sizeof (
UINTN)); ++BlockNum, ValueCopy >>= 8 ) {
55 for (Index = 1; Index <= BlockNum; ++Index) {
56 EncBuf[Index] = (UINT8)(Value >> (8 * (BlockNum - Index)));
59 EncBuf[0] = (UINT8)BlockNum;
60 EncLen = BlockNum + 1;
89 for (ValueCopy = Value, BlockNum = 0; ValueCopy && (BlockNum <
sizeof (
UINTN)); ++BlockNum, ValueCopy >>= 8) {
99 for (Index = 1; Index <= BlockNum; ++Index) {
100 EncBuf[Index-1] = (UINT8)(Value >> (8 * (BlockNum-Index)));
103 EncBuf[BlockNum] = (UINT8)BlockNum;
104 EncLen = BlockNum + 1;
UINTN EFIAPI RightEncode(OUT UINT8 *EncBuf, IN UINTN Value)
UINTN EFIAPI LeftEncode(OUT UINT8 *EncBuf, IN UINTN Value)