public static ByteBuffer node2Buffer(ICachedMNode node) {
    if (node.isMeasurement()) {
      IMeasurementMNode<ICachedMNode> measurementMNode = node.getAsMeasurementMNode();
      if (measurementMNode.isLogicalView()) {
        return view2Buffer(measurementMNode);
      } else {
        return measurement2Buffer(measurementMNode);
      }
    } else {
      return internal2Buffer(node);
    }
  }
These offset rather than magic number may also be used to track usage of related field.
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/schemaengine/schemaregion/mtree/impl/pbtree/schemafile/RecordUtils.java