Toggle main menu visibility
Main Page
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
Files
File List
Globals
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
Variables
Typedefs
a
b
d
e
f
i
l
m
n
p
q
r
s
t
u
v
w
Enumerations
a
b
c
e
h
i
j
l
m
o
p
q
s
t
u
v
Enumerator
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
x
Macros
a
b
c
d
e
f
h
i
l
m
n
o
p
q
r
s
t
u
v
w
▼
Aerospike C Client API
Introduction
►
Data Structures
▼
Files
▼
File List
▼
aerospike
aerospike.h
►
aerospike_batch.h
►
aerospike_index.h
►
aerospike_info.h
►
aerospike_key.h
►
aerospike_query.h
►
aerospike_scan.h
►
aerospike_stats.h
►
aerospike_txn.h
►
aerospike_udf.h
►
as_address.h
►
as_admin.h
►
as_aerospike.h
►
as_arch.h
►
as_arraylist.h
►
as_arraylist_iterator.h
►
as_async.h
►
as_async_proto.h
►
as_atomic.h
►
as_atomic_gcc.h
►
as_atomic_win.h
►
as_batch.h
►
as_bin.h
►
as_bit_operations.h
►
as_boolean.h
►
as_buffer.h
►
as_buffer_pool.h
►
as_bytes.h
►
as_cdt_ctx.h
►
as_cdt_internal.h
►
as_cdt_order.h
►
as_cluster.h
►
as_command.h
►
as_config.h
►
as_conn_pool.h
►
as_cpu.h
►
as_dir.h
►
as_double.h
►
as_error.h
►
as_event.h
►
as_event_internal.h
►
as_exp.h
►
as_exp_operations.h
►
as_geojson.h
►
as_hashmap.h
►
as_hashmap_iterator.h
►
as_hll_operations.h
►
as_host.h
►
as_info.h
►
as_integer.h
►
as_iterator.h
►
as_job.h
►
as_key.h
►
as_latency.h
►
as_list.h
►
as_list_iterator.h
►
as_list_operations.h
►
as_listener.h
►
as_log.h
►
as_log_macros.h
►
as_lookup.h
►
as_map.h
►
as_map_iterator.h
►
as_map_operations.h
►
as_metrics.h
►
as_metrics_writer.h
►
as_module.h
►
as_monitor.h
►
as_msgpack.h
►
as_msgpack_ext.h
►
as_msgpack_serializer.h
►
as_nil.h
►
as_node.h
►
as_operations.h
►
as_orderedmap.h
►
as_pair.h
►
as_partition.h
►
as_partition_filter.h
►
as_partition_tracker.h
►
as_password.h
►
as_peers.h
►
as_pipe.h
►
as_policy.h
►
as_poll.h
►
as_proto.h
►
as_query.h
►
as_query_validate.h
►
as_queue.h
►
as_queue_mt.h
►
as_random.h
►
as_rec.h
►
as_record.h
►
as_record_iterator.h
►
as_result.h
►
as_scan.h
►
as_serializer.h
►
as_shm_cluster.h
►
as_sleep.h
►
as_socket.h
►
as_status.h
►
as_std.h
►
as_stream.h
►
as_string.h
►
as_string_builder.h
►
as_stringmap.h
►
as_thread.h
►
as_thread_pool.h
►
as_timer.h
►
as_tls.h
►
as_txn.h
►
as_txn_monitor.h
as_types.h
►
as_udf.h
►
as_udf_context.h
►
as_util.h
►
as_val.h
►
as_vector.h
►
ssl_util.h
►
version.h
►
Globals
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
Loading...
Searching...
No Matches
as_buffer.h
Go to the documentation of this file.
1
/*
2
* Copyright 2008-2018 Aerospike, Inc.
3
*
4
* Portions may be licensed to Aerospike, Inc. under one or more contributor
5
* license agreements.
6
*
7
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
8
* use this file except in compliance with the License. You may obtain a copy of
9
* the License at http://www.apache.org/licenses/LICENSE-2.0
10
*
11
* Unless required by applicable law or agreed to in writing, software
12
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14
* License for the specific language governing permissions and limitations under
15
* the License.
16
*/
17
18
#pragma once
19
20
#include <
aerospike/as_std.h
>
21
22
#ifdef __cplusplus
23
extern
"C"
{
24
#endif
25
26
/******************************************************************************
27
* TYPES
28
******************************************************************************/
29
30
/**
31
* Byte Buffer.
32
*/
33
typedef
struct
as_buffer_s {
34
35
/**
36
* Number of bytes allocated to the buffer
37
*/
38
uint32_t
capacity
;
39
40
/**
41
* Number of bytes used
42
*/
43
uint32_t
size
;
44
45
/**
46
* Bytes of the buffer
47
*/
48
uint8_t *
data
;
49
50
}
as_buffer
;
33
typedef
struct
as_buffer_s {
…
};
51
52
/******************************************************************************
53
* INLINE FUNCTION DEFINITIONS
54
******************************************************************************/
55
56
/**
57
* Initialize the buffer to default values.
58
*/
59
int
as_buffer_init
(
as_buffer
* b);
60
61
/**
62
* Free the resources allocated to the buffer.
63
*/
64
void
as_buffer_destroy
(
as_buffer
* b);
65
66
#ifdef __cplusplus
67
}
// end extern "C"
68
#endif
as_buffer_init
int as_buffer_init(as_buffer *b)
as_buffer_destroy
void as_buffer_destroy(as_buffer *b)
as_std.h
as_buffer
Definition
as_buffer.h:33
as_buffer::data
uint8_t * data
Definition
as_buffer.h:48
as_buffer::capacity
uint32_t capacity
Definition
as_buffer.h:38
as_buffer::size
uint32_t size
Definition
as_buffer.h:43
aerospike
as_buffer.h
Generated on Tue Apr 1 2025 17:42:44 for Aerospike C Client API by
1.10.0