Documentation ¶
Index ¶
- Constants
- Variables
- func EqualTimestamp(t1, t2 Timestamp) bool
- func EqualTimestampNative(t1, t2 *timestamppb.Timestamp) bool
- func MarshalTimestamp(tm Timestamp, bs []byte) (n int)
- func MarshalTimestampNative(tm *timestamppb.Timestamp, bs []byte) (n int)
- func SizeTimestamp(tm Timestamp) (size int)
- func SizeTimestampNative(tm *timestamppb.Timestamp) (size int)
- func UnmarshalTimestampNative(bs []byte) (tm *timestamppb.Timestamp, n int, err error)
- type SerializerMUSRaw
- type SerializerMUSRawReuse
- type SerializerMUSRawVarint
- type SerializerMUSRawVarintReuse
- func (s SerializerMUSRawVarintReuse) Features() []serializer.Feature
- func (s SerializerMUSRawVarintReuse) Marshal(data serializer.Data) (bs []byte, err error)
- func (s SerializerMUSRawVarintReuse) Name() serializer.ResultName
- func (s SerializerMUSRawVarintReuse) Unmarshal(bs []byte) (data serializer.Data, err error)
- type SerializerMUSUnsafe
- type SerializerMUSUnsafeReuse
- func (s SerializerMUSUnsafeReuse) Features() []serializer.Feature
- func (s SerializerMUSUnsafeReuse) Marshal(data serializer.Data) (bs []byte, err error)
- func (s SerializerMUSUnsafeReuse) Name() serializer.ResultName
- func (s SerializerMUSUnsafeReuse) Unmarshal(bs []byte) (data serializer.Data, err error)
- type SerializerNativeUnsafeReuse
- func (s SerializerNativeUnsafeReuse) Features() []serializer.Feature
- func (s SerializerNativeUnsafeReuse) Marshal(data *protobuf.DataRaw) (bs []byte, err error)
- func (s SerializerNativeUnsafeReuse) Name() serializer.ResultName
- func (s SerializerNativeUnsafeReuse) Unmarshal(bs []byte) (data *protobuf.DataRaw, err error)
- type Timestamp
Constants ¶
View Source
const Protobuf = "protobuf_mus"
Variables ¶
View Source
var Features = []serializer.Feature{ serializer.Manual, serializer.Binary, serializer.Reuse, serializer.NotUnsafe, serializer.UnsafeStr, serializer.Unsafe, serializer.Varint, serializer.Raw, }
View Source
var Serializers = []serializer.Serializer[serializer.Data]{ SerializerMUSRawVarint{}, SerializerMUSRawVarintReuse{/* contains filtered or unexported fields */}, SerializerMUSRaw{}, SerializerMUSRawReuse{/* contains filtered or unexported fields */}, SerializerMUSUnsafe{}, SerializerMUSUnsafeReuse{/* contains filtered or unexported fields */}, }
View Source
var SerializersNative = []serializer.Serializer[*protobuf.DataRaw]{ SerializerNativeUnsafeReuse{/* contains filtered or unexported fields */}, }
Functions ¶
func EqualTimestamp ¶
func EqualTimestampNative ¶
func EqualTimestampNative(t1, t2 *timestamppb.Timestamp) bool
func MarshalTimestamp ¶
func MarshalTimestampNative ¶
func MarshalTimestampNative(tm *timestamppb.Timestamp, bs []byte) (n int)
func SizeTimestamp ¶
func SizeTimestampNative ¶
func SizeTimestampNative(tm *timestamppb.Timestamp) (size int)
func UnmarshalTimestampNative ¶
func UnmarshalTimestampNative(bs []byte) (tm *timestamppb.Timestamp, n int, err error)
Types ¶
type SerializerMUSRaw ¶
type SerializerMUSRaw struct{}
func (SerializerMUSRaw) Features ¶
func (s SerializerMUSRaw) Features() []serializer.Feature
func (SerializerMUSRaw) Marshal ¶
func (s SerializerMUSRaw) Marshal(data serializer.Data) (bs []byte, err error)
func (SerializerMUSRaw) Name ¶
func (s SerializerMUSRaw) Name() serializer.ResultName
func (SerializerMUSRaw) Unmarshal ¶
func (s SerializerMUSRaw) Unmarshal(bs []byte) (data serializer.Data, err error)
type SerializerMUSRawReuse ¶
type SerializerMUSRawReuse struct {
// contains filtered or unexported fields
}
func (SerializerMUSRawReuse) Features ¶
func (s SerializerMUSRawReuse) Features() []serializer.Feature
func (SerializerMUSRawReuse) Marshal ¶
func (s SerializerMUSRawReuse) Marshal(data serializer.Data) (bs []byte, err error)
func (SerializerMUSRawReuse) Name ¶
func (s SerializerMUSRawReuse) Name() serializer.ResultName
func (SerializerMUSRawReuse) Unmarshal ¶
func (s SerializerMUSRawReuse) Unmarshal(bs []byte) (data serializer.Data, err error)
type SerializerMUSRawVarint ¶
type SerializerMUSRawVarint struct{}
func (SerializerMUSRawVarint) Features ¶
func (s SerializerMUSRawVarint) Features() []serializer.Feature
func (SerializerMUSRawVarint) Marshal ¶
func (s SerializerMUSRawVarint) Marshal(data serializer.Data) (bs []byte, err error)
func (SerializerMUSRawVarint) Name ¶
func (s SerializerMUSRawVarint) Name() serializer.ResultName
func (SerializerMUSRawVarint) Unmarshal ¶
func (s SerializerMUSRawVarint) Unmarshal(bs []byte) (data serializer.Data, err error)
type SerializerMUSRawVarintReuse ¶
type SerializerMUSRawVarintReuse struct {
// contains filtered or unexported fields
}
func (SerializerMUSRawVarintReuse) Features ¶
func (s SerializerMUSRawVarintReuse) Features() []serializer.Feature
func (SerializerMUSRawVarintReuse) Marshal ¶
func (s SerializerMUSRawVarintReuse) Marshal(data serializer.Data) (bs []byte, err error)
func (SerializerMUSRawVarintReuse) Name ¶
func (s SerializerMUSRawVarintReuse) Name() serializer.ResultName
func (SerializerMUSRawVarintReuse) Unmarshal ¶
func (s SerializerMUSRawVarintReuse) Unmarshal(bs []byte) (data serializer.Data, err error)
type SerializerMUSUnsafe ¶
type SerializerMUSUnsafe struct{}
func (SerializerMUSUnsafe) Features ¶
func (s SerializerMUSUnsafe) Features() []serializer.Feature
func (SerializerMUSUnsafe) Marshal ¶
func (s SerializerMUSUnsafe) Marshal(data serializer.Data) (bs []byte, err error)
func (SerializerMUSUnsafe) Name ¶
func (s SerializerMUSUnsafe) Name() serializer.ResultName
func (SerializerMUSUnsafe) Unmarshal ¶
func (s SerializerMUSUnsafe) Unmarshal(bs []byte) (data serializer.Data, err error)
type SerializerMUSUnsafeReuse ¶
type SerializerMUSUnsafeReuse struct {
// contains filtered or unexported fields
}
func (SerializerMUSUnsafeReuse) Features ¶
func (s SerializerMUSUnsafeReuse) Features() []serializer.Feature
func (SerializerMUSUnsafeReuse) Marshal ¶
func (s SerializerMUSUnsafeReuse) Marshal(data serializer.Data) (bs []byte, err error)
func (SerializerMUSUnsafeReuse) Name ¶
func (s SerializerMUSUnsafeReuse) Name() serializer.ResultName
func (SerializerMUSUnsafeReuse) Unmarshal ¶
func (s SerializerMUSUnsafeReuse) Unmarshal(bs []byte) (data serializer.Data, err error)
type SerializerNativeUnsafeReuse ¶
type SerializerNativeUnsafeReuse struct {
// contains filtered or unexported fields
}
func (SerializerNativeUnsafeReuse) Features ¶
func (s SerializerNativeUnsafeReuse) Features() []serializer.Feature
func (SerializerNativeUnsafeReuse) Marshal ¶
func (s SerializerNativeUnsafeReuse) Marshal(data *protobuf.DataRaw) (bs []byte, err error)
func (SerializerNativeUnsafeReuse) Name ¶
func (s SerializerNativeUnsafeReuse) Name() serializer.ResultName
Click to show internal directories.
Click to hide internal directories.