modeler.ReadAccessor now takes a []byte as the buffer parameter instead of any. It will internally cast that slice to the appropriate type and use it as backing memory when reading the accessor data.
This new approach has the advantage of allowing to reuse the same buffer for different accessor types. Previously, the buffer would only be used if the buffer type would match the accessor type.
Additionally, all the other modeler.Read* functions have been updated to pass a pooled buffer into modeler.ReadAccessor instead of the buffer passed by the caller.
modeler.ReadAccessor
now takes a[]byte
as the buffer parameter instead ofany
. It will internally cast that slice to the appropriate type and use it as backing memory when reading the accessor data.This new approach has the advantage of allowing to reuse the same buffer for different accessor types. Previously, the buffer would only be used if the buffer type would match the accessor type.
Additionally, all the other
modeler.Read*
functions have been updated to pass a pooled buffer intomodeler.ReadAccessor
instead of the buffer passed by the caller.