text: public override BytesRef Encode(char[] buffer, int offset, int length){int payload = ArrayUtil.ParseInt32(buffer, offset, length); byte[] bytes = PayloadHelper.EncodeInt32(payload);BytesRef result = new BytesRef(bytes);return result;}