MCPcopy Create free account
hub / github.com/NanmiCoder/MediaCrawler / encodeChunk

Function encodeChunk

media_platform/xhs/help.py:206–212  ·  view source on GitHub ↗
(e, t, r)

Source from the content-addressed store, hash-verified

204
205
206def encodeChunk(e, t, r):
207 m = []
208 for b in range(t, r, 3):
209 n = (16711680 & (e[b] << 16)) + \
210 ((e[b + 1] << 8) & 65280) + (e[b + 2] & 255)
211 m.append(tripletToBase64(n))
212 return ''.join(m)
213
214
215def b64Encode(e):

Callers 1

b64EncodeFunction · 0.85

Calls 1

tripletToBase64Function · 0.85

Tested by

no test coverage detected