-
Notifications
You must be signed in to change notification settings - Fork 5
compression
Sudheer edited this page Apr 3, 2023
·
1 revision
Class to support compression and decompression of text and binary data
local compression = require('service_utils.common.compression');
Compresses the given input data of type string or cdata(hex_data_s_type)
data: can be one of string, cdata("hex_data_s_type")
compressed_data: cdata("hex_data_s_type")
Given compressed data buffer of type cdata("hex_data_s_type") decompresses it to a lua string
buffer: cdata("hex_data_s_type")
text: string
Given compressed data buffer of type cdata("hex_data_s_type") decompresses it to a cdata("hex_data_s_type")
buffer: cdata("hex_data_s_type")
decompressed_data: cdata("hex_data_s_type")