All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.redkalex.source.pgsql.PgRespReadyDecoder Maven / Gradle / Ivy

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package org.redkalex.source.pgsql;

import org.redkale.util.ByteBufferReader;

/**
 *
 * @author zhangjx
 */
public class PgRespReadyDecoder implements PgRespDecoder {

    @Override
    public byte messageid() {
        return 'Z';
    }

    @Override
    public Boolean read(ByteBufferReader buffer, int length, byte[] bytes) {
        if (length <= 4) return true;
        //buffer.position(buffer.position() + length - 4);
        buffer.skip(length - 4);
        return true;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy