viewAs<S> method

S viewAs<S>(
  1. TypedDataCaster<S> caster
)

view as ByteStruct view as length available in buffer, maybe a partial or incomplete view nullable accessors in effect, length is set in contents

Implementation

S viewAs<S>(TypedDataCaster<S> caster) => caster(viewAsBytes);