Sha256: bbe9ed7a9a36ec4aa3cc745a12f4eaa3b99394da9a00ac17ff1295fe5a0685dd
Contents?: true
Size: 549 Bytes
Versions: 1
Compression:
Stored size: 549 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); } inline static VALUE ruby_string_from_prof_vec_u8(ddog_prof_Vec_U8 string) { return rb_str_new((char *) string.ptr, string.len); }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ddtrace-1.9.0 | ext/ddtrace_profiling_native_extension/libdatadog_helpers.h |