Rewritten 3byte-functions to accept byte[] as input.