Did I find the right examples for you? yes no

All Samples(6)  |  Call(6)  |  Derive(0)  |  Import(0)

src/a/s/astral-HEAD/examples/webcam_and_rtmp/amf.py   astral(Download)
    def read_u29(self):
        n = result = 0; b = self.read_u8()
        while b & 0x80 and n < 3: result <<= 7; result |= b & 0x7f; b = self.read_u8(); n += 1
        if n < 3: result <<= 7; result |= b
        else: result <<= 8; result |= b

src/a/s/astral-HEAD/astral/rtmp/amf.py   astral(Download)
    def read_u29(self):
        n = result = 0; b = self.read_u8()
        while b & 0x80 and n < 3: result <<= 7; result |= b & 0x7f; b = self.read_u8(); n += 1
        if n < 3: result <<= 7; result |= b
        else: result <<= 8; result |= b

src/r/t/rtmplite-HEAD/amf.py   rtmplite(Download)
    def read_u29(self):
        n = result = 0; b = self.read_u8()
        while b & 0x80 and n < 3: result <<= 7; result |= b & 0x7f; b = self.read_u8(); n += 1
        if n < 3: result <<= 7; result |= b
        else: result <<= 8; result |= b