Protobuf.Encode
- Package
- purescript-protobuf
- Repository
- xc-jp/purescript-protobuf
Primitive builders for encoding Google Protocol Buffers.
You almost never need to import this module. See package README for explanation.
Primed (') encoder functions encode without the tag, for packed repeating fields.
#double Source
double :: forall m. MonadEffect m => FieldNumber -> Number -> PutM m Unit
double Scalar Value Type
#float Source
float :: forall m. MonadEffect m => FieldNumber -> Float32 -> PutM m Unit
float Scalar Value Type
#int32 Source
int32 :: forall m. MonadEffect m => FieldNumber -> Int -> PutM m Unit
int32 Scalar Value Type
#int64 Source
int64 :: forall m. MonadEffect m => FieldNumber -> Long Signed -> PutM m Unit
int64 Scalar Value Type
#uint32 Source
uint32 :: forall m. MonadEffect m => FieldNumber -> UInt -> PutM m Unit
uint32 Scalar Value Type
#uint64 Source
uint64 :: forall m. MonadEffect m => FieldNumber -> Long Unsigned -> PutM m Unit
uint64 Scalar Value Type
#sint32 Source
sint32 :: forall m. MonadEffect m => FieldNumber -> Int -> PutM m Unit
sint32 Scalar Value Type
#sint64 Source
sint64 :: forall m. MonadEffect m => FieldNumber -> Long Signed -> PutM m Unit
sint64 Scalar Value Type
#fixed32 Source
fixed32 :: forall m. MonadEffect m => FieldNumber -> UInt -> PutM m Unit
fixed32 Scalar Value Type
#fixed64 Source
fixed64 :: forall m. MonadEffect m => FieldNumber -> Long Unsigned -> PutM m Unit
fixed64 Scalar Value Type
#sfixed32 Source
sfixed32 :: forall m. MonadEffect m => FieldNumber -> Int -> PutM m Unit
sfixed32 Scalar Value Type
#sfixed64 Source
sfixed64 :: forall m. MonadEffect m => FieldNumber -> Long Signed -> PutM m Unit
sfixed64 Scalar Value Type
#bool Source
bool :: forall m. MonadEffect m => FieldNumber -> Boolean -> PutM m Unit
bool Scalar Value Type
#string Source
string :: forall m. MonadEffect m => FieldNumber -> String -> PutM m Unit
string Scalar Value Type
#bytes Source
bytes :: forall m. MonadEffect m => FieldNumber -> Bytes -> PutM m Unit
bytes Scalar Value Type
#builder Source
builder :: forall m. MonadEffect m => FieldNumber -> Builder -> PutM m Unit
tell
with a tag and a length delimit.
Re-exports from Protobuf.Encode32
#varint32 Source
varint32 :: forall m. MonadEffect m => UInt -> PutM m Unit
https://developers.google.com/protocol-buffers/docs/encoding#varints
#tag32 Source
tag32 :: forall m. MonadEffect m => FieldNumber -> WireType -> PutM m Unit
https://developers.google.com/protocol-buffers/docs/encoding#structure