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

com.github.agfsapi4j.FileStatsImpl Maven / Gradle / Ivy

There is a newer version: 1.0.1
Show newest version
package com.github.agfsapi4j;

import java.nio.ByteBuffer;

class FileStatsImpl implements GlusterFsFileStats
{
	private final int uid;
	private final int gid;
	private final int size;
	private final int mode;

	FileStatsImpl(ByteBuffer buf)
	{
		this.mode = (0x00007fff & buf.getInt(24));
		this.uid = buf.getShort(28);
		this.gid = buf.getShort(32);
		this.size = buf.getInt(48);
	}

	public int getMode()
	{
		return mode;
	}

	public int getGid()
	{
		return gid;
	}

	public int getUid()
	{
		return uid;
	}

	public int getSize()
	{
		return size;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy