int getSizeInBytes() { int result = 0; result += LittleEndian.INT_SIZE; for ( ListFormatOverrideLevel lfolvl : _rgLfoLvl ) result += lfolvl.getSizeInBytes(); return result; }
public int getSizeInBytes() { int result = 0; result += LittleEndian.INT_SIZE; for ( ListFormatOverrideLevel lfolvl : _rgLfoLvl ) result += lfolvl.getSizeInBytes(); return result; }
LFOData( byte[] buf, int startOffset, int cLfolvl ) { int offset = startOffset; _cp = LittleEndian.getInt( buf, offset ); offset += LittleEndian.INT_SIZE; _rgLfoLvl = new ListFormatOverrideLevel[cLfolvl]; for ( int x = 0; x < cLfolvl; x++ ) { _rgLfoLvl[x] = new ListFormatOverrideLevel( buf, offset ); offset += _rgLfoLvl[x].getSizeInBytes(); } }
LFOData( byte[] buf, int startOffset, int cLfolvl ) { int offset = startOffset; _cp = LittleEndian.getInt( buf, offset ); offset += LittleEndian.INT_SIZE; _rgLfoLvl = new ListFormatOverrideLevel[cLfolvl]; for ( int x = 0; x < cLfolvl; x++ ) { _rgLfoLvl[x] = new ListFormatOverrideLevel( buf, offset ); offset += _rgLfoLvl[x].getSizeInBytes(); } }
public byte[] toByteArray() { int offset = 0; byte[] buf = new byte[getSizeInBytes()]; _base.serialize( buf, offset ); offset += LFOLVLBase.getSize(); if ( _lvl != null ) { byte[] levelBuf = _lvl.toByteArray(); System.arraycopy( levelBuf, 0, buf, offset, levelBuf.length ); } return buf; } }
public byte[] toByteArray() { int offset = 0; byte[] buf = new byte[getSizeInBytes()]; _base.serialize( buf, offset ); offset += LFOLVLBase.getSize(); if ( _lvl != null ) { byte[] levelBuf = _lvl.toByteArray(); System.arraycopy( levelBuf, 0, buf, offset, levelBuf.length ); } return buf; } }