1// Copyright 2013-2020 Aerospike, Inc.
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15package aerospike
16
17// BufferEx is a specialized buffer interface for aerospike client.
18type BufferEx interface {
19	WriteInt64(num int64) (int, error)
20	WriteUint64(num uint64) (int, error)
21	WriteInt32(num int32) (int, error)
22	WriteUint32(num uint32) (int, error)
23	WriteInt16(num int16) (int, error)
24	WriteUint16(num uint16) (int, error)
25	WriteFloat32(float float32) (int, error)
26	WriteFloat64(float float64) (int, error)
27	WriteByte(b byte) error
28	WriteString(s string) (int, error)
29	Write(b []byte) (int, error)
30}
31