Package com.googlecode.javacpp

Examples of com.googlecode.javacpp.BytePointer.capacity()


        } else if (CV_NODE_IS_STRING(node.tag())) {
            CvString str = node.data_str();
            BytePointer pointer = str.ptr();
            int length = str.len();
            byte[] bytes = new byte[length];
            pointer.capacity(length).asBuffer().get(bytes);
            return new String(bytes);
        } else {
            return null;
        }
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.