public int asFlatProperties ( FlatBufferBuilder bufferBuilder ) { int iname = bufferBuilder . createString ( name ) ; int ii = FlatProperties . createIVector ( bufferBuilder , Ints . toArray ( i ) ) ; int il = FlatProperties . createLVector ( bufferBuilder , Longs . toArray ( l ) ) ; int id = FlatProperties . createDVector ( bufferBuilder , Doubles . toArray ( d ) ) ; int arrays [ ] = new int [ a . size ( ) ] ; int cnt = 0 ; for ( val array : a ) { int off = array . toFlatArray ( bufferBuilder ) ; arrays [ cnt ++ ] = off ; } int ia = FlatProperties . createAVector ( bufferBuilder , arrays ) ; return FlatProperties . createFlatProperties ( bufferBuilder , iname , ii , il , id , ia ) ; }
This method converts this FunctionProperties instance to FlatBuffers representation