code: @Override
  	public void writeString(int pos, BinaryString input) {
  		if (input.getSegments() == null) {
  			String javaObject = input.getJavaObject();
  			writeBytes(pos, javaObject.getBytes());
  		} else {
  			int len = input.getSizeInBytes();
  			if (len <= 7) {
  				byte[] bytes = SegmentsUtil.allocateReuseBytes(len);
  				SegmentsUtil.copyToBytes(input.getSegments(), input.getOffset(), bytes, 0, len);
  				writeBytesToFixLenPart(segment, getFieldOffset(pos), bytes, len);
  			} else {
  				writeSegmentsToVarLenPart(pos, input.getSegments(), input.getOffset(), len);
  			}
  		}
  	}
docs: See {@link BinaryString#readBinaryStringFieldFromSegments}.