MCPcopy Create free account
hub / github.com/apache/datafusion / encode_bytes

Method encode_bytes

datafusion/functions/src/encoding/inner.rs:368–374  ·  view source on GitHub ↗
(self, value: &[u8])

Source from the content-addressed store, hash-verified

366
367impl Encoding {
368 fn encode_bytes(self, value: &[u8]) -> String {
369 match self {
370 Self::Base64 => BASE64_ENGINE.encode(value),
371 Self::Base64Padded => BASE64_ENGINE_PADDED.encode(value),
372 Self::Hex => hex::encode(value),
373 }
374 }
375
376 fn decode_bytes(self, value: &[u8]) -> Result<Vec<u8>> {
377 match self {

Callers 1

encode_scalarFunction · 0.80

Calls 1

encodeMethod · 0.80

Tested by

no test coverage detected