Skip to main content

I would like decode data from buffer 'data'.

I was trying use Buffer.from but with partial success.

Any ideas how should be done properly?

342_5383f0675fd4459e94ff843bd8f2983b.png

Hi @Pawel Kwiatkowski, it looks like there's two buffers in this example that match each other?

If this is the case, the first buffer of character codes can be converted into a string by using the following function:

String.fromCharCode(...field.split(" "))

Check out an example of this in use:

https://github.com/criblpacks/cribl-knowledge-pack/blob/main/default/pipelines/Spread_Operator/conf.yml


Reply