Documentation ¶
Index ¶
- type FWBase
- type Field
- type Flyweight
- type Int32Field
- type Int64Field
- type LengthAndRawDataField
- func (fld *LengthAndRawDataField) CopyBuffer(buffer *atomic.Buffer, offset int32, length int32)
- func (fld *LengthAndRawDataField) CopyString(data string)
- func (fld *LengthAndRawDataField) GetAsASCII() string
- func (fld *LengthAndRawDataField) GetAsBuffer() *atomic.Buffer
- func (fld *LengthAndRawDataField) Length() int32
- func (fld *LengthAndRawDataField) SetLength(length int32)
- func (fld *LengthAndRawDataField) Wrap(buffer *atomic.Buffer, rawOffset int) int
- type Padding
- type RawDataField
- type StringField
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Field ¶
Field is the interface for a field in a flyweight wrapper. It expects a preallocated buffer and offset into it, as arguments.
type Int32Field ¶
type Int32Field struct {
// contains filtered or unexported fields
}
Int32Field is int32 field for flyweight
func (*Int32Field) CAS ¶
func (fld *Int32Field) CAS(curValue, newValue int32) bool
func (*Int32Field) Get ¶
func (fld *Int32Field) Get() int32
func (*Int32Field) Set ¶
func (fld *Int32Field) Set(value int32)
type Int64Field ¶
type Int64Field struct {
// contains filtered or unexported fields
}
Int64Field is int64 field for flyweight
func (*Int64Field) CAS ¶
func (fld *Int64Field) CAS(curValue, newValue int64) bool
func (*Int64Field) Get ¶
func (fld *Int64Field) Get() int64
func (*Int64Field) GetAndAddInt64 ¶
func (fld *Int64Field) GetAndAddInt64(value int64) int64
func (*Int64Field) Set ¶
func (fld *Int64Field) Set(value int64)
type LengthAndRawDataField ¶
type LengthAndRawDataField struct {
// contains filtered or unexported fields
}
func (*LengthAndRawDataField) CopyBuffer ¶
func (fld *LengthAndRawDataField) CopyBuffer(buffer *atomic.Buffer, offset int32, length int32)
func (*LengthAndRawDataField) CopyString ¶
func (fld *LengthAndRawDataField) CopyString(data string)
func (*LengthAndRawDataField) GetAsASCII ¶
func (fld *LengthAndRawDataField) GetAsASCII() string
func (*LengthAndRawDataField) GetAsBuffer ¶
func (fld *LengthAndRawDataField) GetAsBuffer() *atomic.Buffer
func (*LengthAndRawDataField) Length ¶
func (fld *LengthAndRawDataField) Length() int32
func (*LengthAndRawDataField) SetLength ¶
func (fld *LengthAndRawDataField) SetLength(length int32)
type RawDataField ¶
type RawDataField struct {
// contains filtered or unexported fields
}
func (*RawDataField) Get ¶
func (f *RawDataField) Get() *atomic.Buffer
type StringField ¶
type StringField struct {
// contains filtered or unexported fields
}
StringField is string field for flyweight
func (*StringField) Get ¶
func (fld *StringField) Get() string
func (*StringField) Set ¶
func (fld *StringField) Set(value string)
Click to show internal directories.
Click to hide internal directories.