Sha256: 9c05dfd3f7ae8e21de703b0e194bfdfd0c47a58c73ebabcff0e6c7e04877ee5f

Contents?: true

Size: 763 Bytes

Versions: 13

Compression:

Stored size: 763 Bytes

Contents

#include <ruby.h>
#ifdef HAVE_RB_STR_ENCODE
#include <ruby/st.h>
#include <ruby/encoding.h>
#else
#include <st.h>
#endif

typedef struct {
    int version;
    VALUE class_mapper;
    VALUE stream;
    long depth;
    st_table* str_cache;
    long str_index;
    st_table* trait_cache;
    long trait_index;
    st_table* obj_cache;
    long obj_index;
} AMF_SERIALIZER;

void ser_write_byte(AMF_SERIALIZER *ser, char byte);
void ser_write_int(AMF_SERIALIZER *ser, int num);
void ser_write_uint16(AMF_SERIALIZER *ser, long num);
void ser_write_uint32(AMF_SERIALIZER *ser, long num);
void ser_write_double(AMF_SERIALIZER *ser, double num);
void ser_get_string(VALUE obj, VALUE encode, char** str, long* len);

VALUE ser_serialize(VALUE self, VALUE ver, VALUE obj);

Version data entries

13 entries across 13 versions & 4 rubygems

Version Path
mrpin-amf-2.1.12 ext/rocketamf_ext/serializer.h
mrpin-amf-2.1.11 ext/rocketamf_ext/serializer.h
mrpin-amf-2.1.10 ext/rocketamf_ext/serializer.h
mrpin-amf-2.1.9 ext/rocketamf_ext/serializer.h
mrpin-amf-2.1.8 ext/rocketamf_ext/serializer.h
mrpin-rocketamf-2.0.1 ext/rocketamf_ext/serializer.h
mrpin-rocketamf-2.0.0 ext/rocketamf_ext/serializer.h
mrpin-rocketamf-1.0.4 ext/rocketamf_ext/serializer.h
mrpin-rocketamf-1.0.3 ext/rocketamf_ext/serializer.h
mrpin-rocketamf-1.0.2 ext/rocketamf_ext/serializer.h
scalm-RocketAMF-1.0.0-x86_64-darwin-13 ext/rocketamf_ext/serializer.h
scalm-RocketAMF-1.0.0 ext/rocketamf_ext/serializer.h
RocketAMF-ouvrages-1.0.0 ext/rocketamf_ext/serializer.h