Sha256: e068b2f8734e93ddb69555dd27c9933fc5f99fd15fd7795dba87a1f4a15ffd6e

Contents?: true

Size: 1.07 KB

Versions: 939

Compression:

Stored size: 1.07 KB

Contents

/*
 *
 * Copyright 2015 gRPC authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */

#ifndef GRPC_RB_BYTE_BUFFER_H_
#define GRPC_RB_BYTE_BUFFER_H_

#include <ruby/ruby.h>

#include <grpc/grpc.h>

/* Converts a char* with a length to a grpc_byte_buffer */
grpc_byte_buffer* grpc_rb_s_to_byte_buffer(char* string, size_t length);

/* Converts a grpc_byte_buffer to a ruby string */
VALUE grpc_rb_byte_buffer_to_s(grpc_byte_buffer* buffer);

/* Converts a grpc_slice to a ruby string */
VALUE grpc_rb_slice_to_ruby_string(grpc_slice slice);

#endif /* GRPC_RB_BYTE_BUFFER_H_ */

Version data entries

939 entries across 939 versions & 6 rubygems

Version Path
grpc-1.66.0.pre3-x86-linux src/ruby/ext/grpc/rb_byte_buffer.h
grpc-1.66.0.pre3-x64-mingw-ucrt src/ruby/ext/grpc/rb_byte_buffer.h
grpc-1.66.0.pre3-arm64-darwin src/ruby/ext/grpc/rb_byte_buffer.h
grpc-1.66.0.pre3-x86-mingw32 src/ruby/ext/grpc/rb_byte_buffer.h
grpc-1.66.0.pre3-x86_64-darwin src/ruby/ext/grpc/rb_byte_buffer.h
grpc-1.58.3-aarch64-linux src/ruby/ext/grpc/rb_byte_buffer.h
grpc-1.58.3-x86-linux src/ruby/ext/grpc/rb_byte_buffer.h
grpc-1.58.3-x86_64-linux src/ruby/ext/grpc/rb_byte_buffer.h
grpc-1.58.3-x64-mingw-ucrt src/ruby/ext/grpc/rb_byte_buffer.h
grpc-1.58.3-x86_64-darwin src/ruby/ext/grpc/rb_byte_buffer.h
grpc-1.58.3-x64-mingw32 src/ruby/ext/grpc/rb_byte_buffer.h
grpc-1.58.3-arm64-darwin src/ruby/ext/grpc/rb_byte_buffer.h
grpc-1.58.3 src/ruby/ext/grpc/rb_byte_buffer.h
grpc-1.58.3-x86-mingw32 src/ruby/ext/grpc/rb_byte_buffer.h
grpc-1.59.5-aarch64-linux src/ruby/ext/grpc/rb_byte_buffer.h
grpc-1.59.5-arm64-darwin src/ruby/ext/grpc/rb_byte_buffer.h
grpc-1.59.5-x64-mingw-ucrt src/ruby/ext/grpc/rb_byte_buffer.h
grpc-1.59.5-x86_64-darwin src/ruby/ext/grpc/rb_byte_buffer.h
grpc-1.59.5-x86_64-linux src/ruby/ext/grpc/rb_byte_buffer.h
grpc-1.59.5-x86-mingw32 src/ruby/ext/grpc/rb_byte_buffer.h