C
ASM
C
AppendModeChannel
C
ArraySupport
C
AsyncReaction
C
ByteList
C
ByteListHelper
I
ByteListHolder
I
ClassDefiningClassLoader
C
ClassDefiningJRubyClassLoader
I
ClassProvider
C
ClassesLoader
C
ClasspathLauncher
I
CodePoint
C
CodeRangeSupport
I
CodeRangeable
C
CodegenUtils
C
CommonByteLists
C
ComplexPatterns
C
ConvertBytes
C
ConvertDouble
C
Converter
E
DefinedMessage
C
Dir
C
DoubleConverter
C
ERange
C
ErrnoException
E
ErrorMode
C
FastReaction
C
FileExists
C
FileIsDirectory
C
FileIsNotDirectory
I
FileResource
E
Format
C
FormatBag
C
GenericMap
C
IOChannel
C
IOError
C
IOInputStream
C
IOOutputStream
C
IOReadableByteChannel
C
IOReadableWritableByteChannel
C
IOWritableByteChannel
C
IdUtil
C
InputStreamMarkCursor
C
Inspector
C
InvalidAnnotationDescriptorException
C
InvalidArguments
C
JDBCDriverUnloader
C
JRubyClassLoader
C
JRubyFile
C
JRubyObjectInputStream
C
JavaNameMangler
C
Join
E
KCode
I
Kernel32
C
KeyValuePair
E
Kind
C
LaunchConfig
I
Loader
C
Memo
C
MurmurHash
C
NClassClassLoader
E
NeighborChar
C
NoFunctionalitySignalFacade
C
NormalizedFile
C
NotFound
C
Numeric
C
OSEnvironment
C
OneShotClassLoader
C
POpenProcess
C
Pack
C
PackUtils
C
Pair
C
PerlHash
C
PermissionDenied
C
PhantomReferenceReaper
C
Random
C
RationalPatterns
C
Reaction
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
Spec
C
Sprintf
C
StringSupport
C
StrptimeParser
C
StrptimeToken
C
SunSignalFacade
E
SymbolNameType
C
SyncReaction
C
TR
C
TimeZoneConverter
C
Token
C
TooManySymlinks
C
TrTables
I
TypeCoercer
C
TypeConverter
C
URLResource
C
URLUtil
C
UriLikePathHelper
I
Visit
C
WeakIdentityHashMap
C
WeakReferenceReaper
C
WindowsFFI
M
copy(src, dst, dst_off, length)
M
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.
name type description
dst_off int off set to start copying to
length int copied 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)