MCPcopy Create free account
hub / github.com/apache/arrow / expand

Function expand

cpp/src/gandiva/make_precompiled_bitcode.py:24–29  ·  view source on GitHub ↗

Expand *data* as a initializer list of hexadecimal char escapes.

(data)

Source from the content-addressed store, hash-verified

22marker = b"<DATA_CHARS>"
23
24def expand(data):
25 """
26 Expand *data* as a initializer list of hexadecimal char escapes.
27 """
28 expanded_data = ", ".join([hex(c) for c in bytearray(data)])
29 return expanded_data.encode('ascii')
30
31
32def apply_template(template, data):

Callers 1

apply_templateFunction · 0.85

Calls 2

joinMethod · 0.45
encodeMethod · 0.45

Tested by

no test coverage detected