Sha256: 80be528e823b450e237b6559f70840862e6d87c32201ba5d75a444dd33675f36

Contents?: true

Size: 679 Bytes

Versions: 37

Compression:

Stored size: 679 Bytes

Contents

// Copyright (c) 2012 Peter Ohler. All rights reserved.
// Licensed under the MIT License. See LICENSE file in the project root for
// license details.

#ifndef OJ_CIRCARRAY_H
#define OJ_CIRCARRAY_H

#include "ruby.h"

typedef struct _circArray {
    VALUE         obj_array[1024];
    VALUE *       objs;
    unsigned long size;  // allocated size or initial array size
    unsigned long cnt;
} * CircArray;

extern CircArray oj_circ_array_new(void);
extern void      oj_circ_array_free(CircArray ca);
extern void      oj_circ_array_set(CircArray ca, VALUE obj, unsigned long id);
extern VALUE     oj_circ_array_get(CircArray ca, unsigned long id);

#endif /* OJ_CIRCARRAY_H */

Version data entries

37 entries across 37 versions & 2 rubygems

Version Path
devcycle-ruby-server-sdk-2.0.0 vendor/bundle/ruby/3.0.0/gems/oj-3.13.2/ext/oj/circarray.h
oj-3.14.2 ext/oj/circarray.h
oj-3.14.1 ext/oj/circarray.h
oj-3.14.0 ext/oj/circarray.h
oj-3.13.23 ext/oj/circarray.h
oj-3.13.22 ext/oj/circarray.h
oj-3.13.21 ext/oj/circarray.h
oj-3.13.20 ext/oj/circarray.h
oj-3.13.19 ext/oj/circarray.h
oj-3.13.18 ext/oj/circarray.h
oj-3.13.17 ext/oj/circarray.h
oj-3.13.16 ext/oj/circarray.h
oj-3.13.15 ext/oj/circarray.h
oj-3.13.14 ext/oj/circarray.h
oj-3.13.13 ext/oj/circarray.h
oj-3.13.12 ext/oj/circarray.h
oj-3.13.11 ext/oj/circarray.h
oj-3.13.10 ext/oj/circarray.h
oj-3.13.9 ext/oj/circarray.h
oj-3.13.8 ext/oj/circarray.h