jruby/docs BETA
Navigation
org.jruby.util 84
C ASM
C AppendModeChannel
C ArraySupport
C ByteList
C ByteListHelper
I ByteListHolder
I ClassDefiningClassLoader
C ClassDefiningJRubyClassLoader
I ClassProvider
C ClassesLoader
C ClasspathLauncher
C CodeRangeSupport
I CodeRangeable
C CodegenUtils
C CommonByteLists
C ConvertBytes
C ConvertDouble
E DefinedMessage
C Dir
I FileResource
C GenericMap
C IOChannel
C IOInputStream
C IOOutputStream
C IdUtil
C InputStreamMarkCursor
C Inspector
C JDBCDriverUnloader
C JRubyClassLoader
C JRubyFile
C JRubyObjectInputStream
C JavaNameMangler
C Join
E KCode
C KeyValuePair
I Loader
C Memo
C MurmurHash
C NClassClassLoader
C NoFunctionalitySignalFacade
C NormalizedFile
C Numeric
C OSEnvironment
C OneShotClassLoader
C Pack
C PackUtils
C PerlHash
C PhantomReferenceReaper
C Random
C RecursiveComparator
C ReferenceReaper
C RegexpOptions
C RegexpSupport
C ResourceException
C RubyDateFormatter
C RubyDateParser
C RubyFileTypeDetector
C RubyStringBuilder
C RubyTimeOutputFormatter
C RubyTimeParser
C SafeDoubleParser
C SafeFloatParser
C SafePropertyAccessor
C SecurityHelper
C SelfFirstJRubyClassLoader
C ShellLauncher
I SignalFacade
C SipHashInline
C SoftReferenceReaper
C Sprintf
C StringSupport
C StrptimeParser
C StrptimeToken
C SunSignalFacade
E SymbolNameType
C TimeZoneConverter
I TypeCoercer
C TypeConverter
C URLResource
C URLUtil
C UriLikePathHelper
C WeakIdentityHashMap
C WeakReferenceReaper
C WindowsFFI
ArraySupport — members 9
C copy(src, dst, dst_off, length)
C copy(src, src_off, dst, dst_off, length)
M new_copy(src, length) Object[]
M new_copy(src, length) IRubyObject[]
M new_copy(src, src_off, length) IRubyObject[]
M new_copy(src, length) Class[]
M new_copy(src, last) Object[]
M new_copy(src, last) IRubyObject[]
M new_copy(first, src) IRubyObject[]

org.jruby.util.ArraySupport

class abstract 9 members

Support methods for (native) arrays. These utility methods are intended as `System.arraycopy` replacements esp. for common cases such as (method) argument processing, where the arrays are usually small. These are fairly common and for such arrays a length switch + an "inlined" array copy/instantiation cuts the execution time to (at least) half, compared to doing a bare native `arraycopy` (on 8u102).

Class Methods

copy

copy ( Object[] src, Object[] dst, int dst_off, int length )
Java: copy(Object[] src, Object[] dst, int dstOff, int length)

Copy a source array into a destination array.

nametypedescription
dst_offintoff set to start copying to
lengthintcopied array length

copy

copy ( Object[] src, int src_off, Object[] dst, int dst_off, int length )
Java: copy(Object[] src, int srcOff, Object[] dst, int dstOff, int length)

new_copy

Object[] new_copy ( Object[] src, int length )
Java: newCopy(Object[] src, int length)

new_copy

IRubyObject[] new_copy ( IRubyObject[] src, int length )
Java: newCopy(org.jruby.runtime.builtin.IRubyObject[] src, int length)

new_copy

IRubyObject[] new_copy ( IRubyObject[] src, int src_off, int length )
Java: newCopy(org.jruby.runtime.builtin.IRubyObject[] src, int srcOff, int length)

new_copy

Class[] new_copy ( Class[] src, int length )
Java: newCopy(Class[] src, int length)

new_copy

Object[] new_copy ( Object[] src, Object last )
Java: newCopy(Object[] src, Object last)

new_copy

IRubyObject[] new_copy ( IRubyObject[] src, IRubyObject last )
Java: newCopy(org.jruby.runtime.builtin.IRubyObject[] src, org.jruby.runtime.builtin.IRubyObject last)

new_copy

IRubyObject[] new_copy ( IRubyObject first, IRubyObject[] src )
Java: newCopy(org.jruby.runtime.builtin.IRubyObject first, org.jruby.runtime.builtin.IRubyObject[] src)