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

com.davfx.ninio.snmp.NullBerPacket Maven / Gradle / Ivy

There is a newer version: 3.0.50
Show newest version
package com.davfx.ninio.snmp;

import java.nio.ByteBuffer;

public final class NullBerPacket implements BerPacket {
	private final ByteBuffer lengthBuffer = BerPacketUtils.lengthBuffer(0);

	public NullBerPacket() {
	}

	@Override
	public void write(ByteBuffer buffer) {
		BerPacketUtils.writeHeader(BerConstants.NULL, lengthBuffer, buffer);
	}

	@Override
	public ByteBuffer lengthBuffer() {
		return lengthBuffer;
	}

	@Override
	public int length() {
		return 0;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy