From: <dav...@di...> - 2012-02-15 12:33:17
|
Questions about Marty's unsigned proposal (mostly for Marty, but feel free to contribute) 1) With Marty's proposed interface what does PVUInt.get() do when the value is greater than Integer.MAX_VALUE. Does it return a negative value or throw an exception. 2) In your suggestion for unsigneds you gave this interface below. I'm assuming it was meant to be PVUByteArray because of the short[] in the last method. public interface PVByteArray extends PVScalarArray{ int get(int offset, int length, ByteArrayData data); int put(int offset,int length, byte[] from, int fromOffset); void shareData(byte[] from); int get(int offset, int length, short[] dest, int toOffset); // NEW METHOD } Is this correct? What does the last get do - does it, as I assume copy the data into the buffer. Since there's some confusion between whether this is a PVUByteArray or a PVByteArray can I check that the last argument in the first get is the existing ByteArrayData type? Thanks. Dr David Hickin Software Systems Engineer Diamond Light Source Ltd Diamond House Harwell Science & Innovation Campus Didcot, Oxfordshire, OX11 0DE -- This e-mail and any attachments may contain confidential, copyright and or privileged material, and are for the use of the intended addressee only. If you are not the intended addressee or an authorised recipient of the addressee please notify us of receipt by returning the e-mail and do not use, copy, retain, distribute or disclose the information in or attached to the e-mail. Any opinions expressed within this e-mail are those of the individual and not necessarily of Diamond Light Source Ltd. Diamond Light Source Ltd. cannot guarantee that this e-mail or any attachments are free from viruses and we cannot accept liability for any damage which you may sustain as a result of software viruses which may be transmitted in or with the message. Diamond Light Source Limited (company no. 4375679). Registered in England and Wales with its registered office at Diamond House, Harwell Science and Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom -- This e-mail and any attachments may contain confidential, copyright and or privileged material, and are for the use of the intended addressee only. If you are not the intended addressee or an authorised recipient of the addressee please notify us of receipt by returning the e-mail and do not use, copy, retain, distribute or disclose the information in or attached to the e-mail. Any opinions expressed within this e-mail are those of the individual and not necessarily of Diamond Light Source Ltd. Diamond Light Source Ltd. cannot guarantee that this e-mail or any attachments are free from viruses and we cannot accept liability for any damage which you may sustain as a result of software viruses which may be transmitted in or with the message. Diamond Light Source Limited (company no. 4375679). Registered in England and Wales with its registered office at Diamond House, Harwell Science and Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom |