简体   繁体   English

BlockCopy C#到Java-有没有办法做到这一点

[英]BlockCopy C# to java - is there any way to do this

The BlockCopy which can be found under the System namespace in C# has following parameters: 可以在C#的System名称空间下找到的BlockCopy具有以下参数:

public static void BlockCopy(
 Array src,
 int srcOffset,
 Array dst,
 int dstOffset,
 int count
)

Is there any implementation in java for this? java中是否有任何实现?

I have a Byte-array which contains a file, and I need this function i java. 我有一个包含文件的字节数组,我需要此功能java。 Thanks in advance! 提前致谢!

Have a look at System.arraycopy . 看看System.arraycopy (It takes the exact same arguments.) (它采用完全相同的参数。)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 将双精度数组转换为字节数组:C#Buffer.BlockCopy的Java方法是什么? - Convert array of doubles to byte array: What is the Java way of C# Buffer.BlockCopy? Java相当于Buffer.BlockCopy - Java equivalent of Buffer.BlockCopy 有什么方法可以用Java生成与C#中生成的UUID相同的UUID? - Is there any way to generate a UUID in Java that is identical to that of the one generated in C#? 有没有办法在 Java 中执行部分类(如 C#)? - Is there a way to do partial classes in Java (like C#)? 任何以我学习java(命令行,没有intelliSense或VS)的方式教授C#的教程或书籍? - Any tutorials or books that teach C# the way I learned java (commandline, without intelliSense or VS)? 有没有办法从IDE中截取数百行代码的屏幕截图? 特别是Java和C#着色 - Is there any way to take screenshots of hundreds of lines of code from within an IDE? Specifically Java and C# colouring 从C#调用任何Java方法 - Call any Java method from C# Java:有没有其他有效的方法来做到这一点 - Java: is there any other efficient way to do this Java中是否有C#Range属性的注释? - Is there any annotation in Java for C# Range attribute? 基于C#或Java中的多个分数进行字符串查找的好方法 - Good way to do a string lookup based on multiple scores in C# or Java
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM