Ruby: ext/json/fbuffer/fbuffer.h File Reference

Ruby 3.0.5p211 (2022-11-24 revision ba5cf0f7c52d4d35cc6a173c89eda98ceffa2dcf)

Data Structures | Macros | Typedefs
fbuffer.h File Reference
`#include "ruby.h"`
`#include "ruby/encoding.h"`

Go to the source code of this file.

## Data Structures
struct | FBufferStruct

## Macros
#define | RSTRING_PTR(string) RSTRING(string)->ptr
#define | RSTRING_LEN(string) RSTRING(string)->len
#define | RB_OBJ_CLASSNAME(obj) rb_obj_class(obj)
#define | RB_OBJ_STRING(obj) (obj)
#define | FORCE_UTF8(obj) rb_enc_associate((obj), rb_utf8_encoding())
#define | FBUFFER_INITIAL_LENGTH_DEFAULT 1024
#define | FBUFFER_PTR(fb) (fb->ptr)
#define | FBUFFER_LEN(fb) (fb->len)
#define | FBUFFER_CAPA(fb) (fb->capa)
#define | FBUFFER_PAIR(fb) FBUFFER_PTR(fb), FBUFFER_LEN(fb)

## Typedefs
typedef struct FBufferStruct | FBuffer

## Macro Definition Documentation

## ◆ FBUFFER_CAPA

#define FBUFFER_CAPA | ( |  | fb | ) | (fb->capa)

Definition at line 57 of file fbuffer.h.

## ◆ FBUFFER_INITIAL_LENGTH_DEFAULT

#define FBUFFER_INITIAL_LENGTH_DEFAULT 1024

Definition at line 53 of file fbuffer.h.

## ◆ FBUFFER_LEN

#define FBUFFER_LEN | ( |  | fb | ) | (fb->len)

Definition at line 56 of file fbuffer.h.

## ◆ FBUFFER_PAIR

#define FBUFFER_PAIR | ( |  | fb | ) | FBUFFER_PTR(fb), FBUFFER_LEN(fb)

Definition at line 58 of file fbuffer.h.

## ◆ FBUFFER_PTR

#define FBUFFER_PTR | ( |  | fb | ) | (fb->ptr)

Definition at line 55 of file fbuffer.h.

## ◆ FORCE_UTF8

#define FORCE_UTF8 | ( |  | obj | ) | rb_enc_associate((obj), rb_utf8_encoding())

Definition at line 36 of file fbuffer.h.

## ◆ RB_OBJ_CLASSNAME

#define RB_OBJ_CLASSNAME | ( |  | obj | ) | rb_obj_class(obj)

Definition at line 26 of file fbuffer.h.

## ◆ RB_OBJ_STRING

#define RB_OBJ_STRING | ( |  | obj | ) | (obj)

Definition at line 27 of file fbuffer.h.

## ◆ RSTRING_LEN

#define RSTRING_LEN | ( |  | string | ) | RSTRING(string)->len

Definition at line 22 of file fbuffer.h.

## ◆ RSTRING_PTR

#define RSTRING_PTR | ( |  | string | ) | RSTRING(string)->ptr

Definition at line 19 of file fbuffer.h.

## Typedef Documentation

## ◆ FBuffer

typedef struct FBufferStruct FBuffer