draco/docs/spec/core.functions.md
Frank Galligan 51db0e4563 Update bitstream spec to version 2.1
This only updates the algorithm part.

This is associated with #134
2017-09-30 15:11:11 -07:00

326 B

Core Functions

DecodeVarint

void DecodeVarint(out_val) {
  in                                                                                  UI8
  if (in & (1 << 7)) {
    DecodeVarint(out_val);
    out_val = (out_val << 7) | (in & ((1 << 7) - 1));
  } else {
    out_val = in;
  }
}

{:.draco-syntax }