public BytesRef encode(char[] buffer, int offset, int length) {int payload = ArrayUtil.parseInt(buffer, offset, length);byte[] bytes = PayloadHelper.encodeInt(payload);BytesRef result = new BytesRef(bytes);return result;}

public BytesRef encode ( char [ ] buffer , int offset , int length ) { int payload = ArrayUtil . parseInt ( buffer , offset , length ) ; byte [ ] bytes = PayloadHelper . encodeInt ( payload ) ; BytesRef result = new BytesRef ( bytes ) ; return result ; }
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;}
