dproto ~master (2018-03-09T02:44:45Z)
Home
Dub
Repo
writeProto
dproto
serialize
Encode a value into a series of bytes
void
writeProto
(
ref
R
r
,
BuffType
!
T
src
)
void
writeProto
(
ref
R
r
,
BuffType
!
T
src
)
void
writeProto
(
string
T
R
)
(
ref
R
r
,
BuffType
!
T
src
)
if
(
isProtoOutputRange
!
R
&&
(
T.msgType
== "double".
msgType
||
T.msgType
== "float".
msgType
)
)
void
writeProto
(
ref
R
r
,
const
BuffType
!
T
src
)
Parameters
r
Type:
R
output range
src
Type:
BuffType
!
T
The raw data
Return Value
Type:
void
The encoded value
Meta
Source
See Implementation
dproto
serialize
functions
defaultDecode
fromVarint
fromZigZag
isBuiltinType
msgNum
msgType
readProto
readVarint
toVarint
toZigZag
wireType
writeProto
manifest constants
ENUM_SERIALIZATION
PACKED_MSG_TYPE
structs
CntRange
templates
BuffType
Encode a value into a series of bytes