MCPcopy Create free account
hub / github.com/apache/thrift / rb_thrift_memory_buffer_write

Function rb_thrift_memory_buffer_write

lib/rb/ext/memory_buffer.c:39–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37VALUE rb_thrift_memory_buffer_read_into_buffer(VALUE self, VALUE buffer_value, VALUE size_value);
38
39VALUE rb_thrift_memory_buffer_write(VALUE self, VALUE str) {
40 VALUE buf = GET_BUF(self);
41 str = force_binary_encoding(str);
42 rb_str_buf_cat(buf, StringValuePtr(str), RSTRING_LEN(str));
43 return Qnil;
44}
45
46VALUE rb_thrift_memory_buffer_read(VALUE self, VALUE length_value) {
47 int length = FIX2INT(length_value);

Callers

nothing calls this directly

Calls 1

force_binary_encodingFunction · 0.85

Tested by

no test coverage detected