copy
copy(jadeBytes: JadeBytes input);
The copy method of the JadeBytes class copies the binary content of the receiver JadeBytes object to the JadeBytes object specified by the jadeBytes parameter. If the object referred to by the jadeBytes parameter is not empty, an exception is raised.
If both the receiver and target are singleFile instances, the loadFromFileDirect method is used to transfer the content to the target instance; that is, the copy occurs within the server node and may use a fast operating system file copy routine.
The following example shows the use of the copy method.
vars bytes1, bytes2 : JadeBytes; begin create bytes1; bytes1.setContent("JADE".Binary); create bytes2; bytes1.copy(bytes2); write bytes2.getContent; // Writes "JADE" epilog delete bytes1; delete bytes2; end;