Sha256: 7186d1dddc0ce3790b170d6247e449bbbc5f3ec24224fa553ad19574d0ba1709
Contents?: true
Size: 416 Bytes
Versions: 4
Compression:
Stored size: 416 Bytes
Contents
#pragma once #include <datadog/profiling.h> #include "ruby_helpers.h" inline static ddog_CharSlice char_slice_from_ruby_string(VALUE string) { ENFORCE_TYPE(string, T_STRING); ddog_CharSlice char_slice = {.ptr = StringValuePtr(string), .len = RSTRING_LEN(string)}; return char_slice; } inline static VALUE ruby_string_from_vec_u8(ddog_Vec_u8 string) { return rb_str_new((char *) string.ptr, string.len); }
Version data entries
4 entries across 4 versions & 1 rubygems