A FunctionCall packet is sent by the client to request execution of a function, which will return a (possibly empty) result set.
String packetType: "FunctionCall"
int functionObjectID : the object ID for the function being called.
List<Integer> formatCodes : a list of the format of the arguments, either zero for text or one for binary. This list can be changed, but only if you know exactly what you're doing.
List<byte[]> parameters: the raw value of the parameters
int resultFormat: the format of the result, either zero (text) or one (binary).
object getParameter(int idx): returns the value of the parameter as a string if the parameter's format is text, or as a byte array otherwise.
void setParameter(int idx, object value): sets the value of the parameter as a string. The formatCode for this parameter is set to 0 (text).