VersionDecorator.convert

Helper method that takes care of actual conversion routine between two struct types (those are assumed to be of compatible versions)

Uses this.convert_buffer for temporary allocations

More...
  1. Contiguous!(S) convert(Buffer!(void) buffer)
  2. Contiguous!(S) convert(void[] buffer)
    class VersionDecorator
    convert
    (
    S
    Source
    )
    (
    ref void[] buffer
    )

Parameters

buffer void[]

contains serialized Source instance, will be modified to store deserialized S instance instead.

Detailed Description

Template Params

S = needed struct type Source = struct type seralized into buffer

Meta