this.componentType = componentType;
this.flags = AsmUtil.getNativeArrayFlags(annotations);
}
public final void marshal(InvocationSession session, HeapInvocationBuffer buffer, Object parameter) {
ObjectParameterStrategy strategy = componentType != null
? AsmRuntime.bufferParameterStrategy((Buffer) parameter, componentType)
: AsmRuntime.pointerParameterStrategy((Buffer) parameter);
buffer.putObject(parameter, strategy, flags);
}