@Override
	public void setShort(BigInteger bigIndex, short value) throws ByteBlockAccessException {
		int index = bigIndex.intValue();
		if (index < buf.length) {
			byte[] b = new byte[2];
			converter.putShort(b, 0, value);
			System.arraycopy(b, 0, buf, index, b.length);
		}
	}
ByteBlock for a byte buffer read from a file.
Ghidra/Features/ByteViewer/src/main/java/ghidra/app/plugin/core/byteviewer/FileByteBlock.java