protobuf_serialization/sizer

Source   Edit  

Procs

func computeFieldSize(field: int; value: PBOption; ProtoType: type;
                      skipDefault: static bool): int {....raises: [], gcsafe.}
Source   Edit  
func computeFieldSize[T: not byte](field: int; value: openArray[T];
                                   ProtoType: type SomeProto;
                                   skipDefault: static bool): int {....raises: [],
    gcsafe.}
Source   Edit  
func computeFieldSize[T: not object and (seq[byte] or not seq)](field: int;
    value: T; ProtoType: type SomeScalar; skipDefault: static bool): int {.
    ...raises: [], gcsafe.}
Source   Edit  
func computeFieldSize[T: not seq and not PBOption](field: int; value: T;
    ProtoType: type ProtobufExt; _: static bool) {....raises: [], gcsafe.}
Source   Edit  
func computeFieldSize[T: object and not PBOption](field: int; value: T;
    ProtoType: type pbytes; skipDefault: static bool): int {....raises: [], gcsafe.}
Source   Edit  
func computeFieldSize[T](field: int; value: seq[T]; ProtoType: type ProtobufExt;
                         skipDefault: static bool): int {.
    ...deprecated: "use extensionDefaults", raises: [], gcsafe.}
Deprecated: use extensionDefaults
Source   Edit  
func computeFieldSizePacked(field: int; value: openArray;
                            ProtoType: type SomePrimitive): int {....raises: [],
    gcsafe.}
Source   Edit  
func computeFieldSizePacked(field: int; values: openArray;
                            ProtoType: type ProtobufExt): int {....raises: [],
    gcsafe.}
Source   Edit  
func computeObjectSize[T: object](value: T): int {....raises: [], gcsafe.}
Source   Edit  
func computeSizePacked[T: not byte](value: openArray[T];
                                    ProtoType: type SomePrimitive): int {.
    ...raises: [], gcsafe.}
Source   Edit  

Templates

template computeFieldSizePackedIt[T](field: int; value: openArray[T];
                                     ProtoType: type SomePrimitive;
                                     item: untyped): int {..}
Source   Edit  
template computeSizePackedIt[T: not byte](value: openArray[T];
    ProtoType: type SomePrimitive; item: untyped): int {..}
Source   Edit